LocationResponseGenerator

org.http4s.dsl.impl.LocationResponseGenerator

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.

Attributes

Source:
ResponseGenerator.scala
Graph
Supertypes
class Any
Known subtypes
class FoundOps[F, G]
class MultipleChoicesOps[F, G]
class SeeOtherOps[F, G]

Members list

Concise view

Value members

Concrete methods

def apply(location: Location)(implicit F: Applicative[F]): F[Response[G]]

Attributes

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

Attributes

Source:
ResponseGenerator.scala

Inherited methods

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

Attributes

Inherited from:
EntityResponseGenerator
Source:
ResponseGenerator.scala
def apply[A](body: G[A])(implicit F: Monad[F], w: EntityEncoder[G, A]): F[Response[G]]

Attributes

Inherited from:
EntityResponseGenerator
Source:
ResponseGenerator.scala
def apply()(implicit F: Applicative[F]): F[Response[G]]

Attributes

Inherited from:
EntityResponseGenerator
Source:
ResponseGenerator.scala
def headers(header: ToRaw, _headers: ToRaw*)(implicit F: Applicative[F]): F[Response[G]]

Attributes

Inherited from:
EntityResponseGenerator
Source:
ResponseGenerator.scala
def liftG: FunctionK[G, F]

Attributes

Inherited from:
EntityResponseGenerator
Source:
ResponseGenerator.scala

Attributes

Inherited from:
ResponseGenerator
Source:
ResponseGenerator.scala