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.

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 MultipleChoicesOps[F, G]
class FoundOps[F, G]
class SeeOtherOps[F, G]

Value members

Concrete methods

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

Deprecated methods

@deprecated("Use `apply(Location(location))` instead", "0.18.0-M2")
def apply(uri: Uri)(F: Applicative[F]): F[Response[G]]
Deprecated

Inherited methods

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