LocationResponseGenerator

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 EntityResponseGenerators.

class Any
class FoundOps[F, G]
class MultipleChoicesOps[F, G]
class SeeOtherOps[F, G]

Value members

Concrete methods

def apply(location: Location)(implicit F: Applicative[F]): F[Response[G]]
def apply[A](location: Location, body: A, headers: ToRaw*)(implicit F: Applicative[F], w: EntityEncoder[G, A]): F[Response[G]]

Inherited methods

def apply[A](body: A, headers: ToRaw*)(implicit F: Applicative[F], w: EntityEncoder[G, A]): F[Response[G]]
def apply[A](body: G[A])(implicit F: Monad[F], w: EntityEncoder[G, A]): F[Response[G]]
def apply()(implicit F: Applicative[F]): F[Response[G]]
def headers(header: ToRaw, _headers: ToRaw*)(implicit F: Applicative[F]): F[Response[G]]
def liftG: FunctionK[G, F]
Inherited from:
ResponseGenerator