t

org.http4s.dsl.impl

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.

Source
ResponseGenerator.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LocationResponseGenerator
  2. EntityResponseGenerator
  3. ResponseGenerator
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def liftG: FunctionK[G, F]
    Definition Classes
    EntityResponseGenerator
  2. abstract def status: Status
    Definition Classes
    ResponseGenerator

Concrete Value Members

  1. def apply[A](location: Location, body: A, headers: Header*)(implicit F: Applicative[F], w: EntityEncoder[G, A]): F[Response[G]]
  2. def apply(location: Location, headers: Header*)(implicit F: Applicative[F]): F[Response[G]]
  3. def apply[A](body: A, headers: Header*)(implicit F: Applicative[F], w: EntityEncoder[G, A]): F[Response[G]]
    Definition Classes
    EntityResponseGenerator
  4. def apply[A](body: G[A])(implicit F: Monad[F], w: EntityEncoder[G, A]): F[Response[G]]
    Definition Classes
    EntityResponseGenerator
  5. def apply(headers: Header*)(implicit F: Applicative[F]): F[Response[G]]
    Definition Classes
    EntityResponseGenerator

Deprecated Value Members

  1. def apply(location: Uri)(implicit F: Applicative[F]): F[Response[G]]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.18.0-M2) Use apply(Location(location)) instead