trait LocationResponseGenerator[F[_], G[_]] extends EntityResponseGenerator[F, G]
Helper for the generation of a org.http4s.Response which may contain a Location header and may contain a body.
A 300, 301, 302, 303, 307 and 308 status SHOULD contain a Location header, which
distinguishes this from other EntityResponseGenerator
s.
- Source
- ResponseGenerator.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- LocationResponseGenerator
- EntityResponseGenerator
- ResponseGenerator
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
getClass(): Class[_]
- Definition Classes
- Any
-
abstract
def
liftG: FunctionK[G, F]
- Definition Classes
- EntityResponseGenerator
-
abstract
def
status: Status
- Definition Classes
- ResponseGenerator
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
- def apply[A](location: Location, body: A, headers: ToRaw*)(implicit F: Applicative[F], w: EntityEncoder[G, A]): F[Response[G]]
- def apply(location: Location)(implicit F: Applicative[F]): F[Response[G]]
-
def
apply[A](body: A, headers: ToRaw*)(implicit F: Applicative[F], w: EntityEncoder[G, A]): F[Response[G]]
- Definition Classes
- EntityResponseGenerator
-
def
apply[A](body: G[A])(implicit F: Monad[F], w: EntityEncoder[G, A]): F[Response[G]]
- Definition Classes
- EntityResponseGenerator
-
def
apply()(implicit F: Applicative[F]): F[Response[G]]
- Definition Classes
- EntityResponseGenerator
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
equals(arg0: Any): Boolean
- Definition Classes
- Any
-
def
hashCode(): Int
- Definition Classes
- Any
-
def
headers(header: ToRaw, _headers: ToRaw*)(implicit F: Applicative[F]): F[Response[G]]
- Definition Classes
- EntityResponseGenerator
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
Deprecated Value Members
-
def
apply(uri: Uri)(implicit F: Applicative[F]): F[Response[G]]
- Annotations
- @deprecated
- Deprecated
(Since version 0.18.0-M2) Use
apply(Location(location))
instead