Response

object Response extends KleisliSyntax
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_]](status: Status, httpVersion: HttpVersion, headers: Headers, body: EntityBody[F], attributes: Vault): Response[F]

Representation of the HTTP response to send back to the client

Representation of the HTTP response to send back to the client

Value Params
attributes

io.chrisdavenport.vault.Vault containing additional parameters which may be used by the http4s backend for additional processing such as java.io.File object

body

EntityBody[F] representing the possible body of the response

headers

Headers containing all response headers

status

Status code and message

def notFound[F[_]]: Response[F]
def notFoundFor[F[_]](request: Request[F])(implicit evidence$2: Applicative[F], encoder: EntityEncoder[F, String]): F[Response[F]]
def timeout[F[_]]: Response[F]
def unapply[F[_]](response: Response[F]): Option[(Status, HttpVersion, Headers, EntityBody[F], Vault)]

Implicits

Inherited implicits

implicit def http4sKleisliAuthedRoutesSyntax[F[_], A](authedRoutes: AuthedRoutes[A, F]): KleisliAuthedRoutesOps[F, A]
Inherited from
KleisliSyntax
implicit def http4sKleisliHttpAppSyntax[F[_]](app: HttpApp[F])(implicit evidence$4: Functor[F]): KleisliHttpAppOps[F]
Inherited from
KleisliSyntax
Inherited from
KleisliSyntax
implicit def http4sKleisliResponseSyntaxOptionT[F[_], A](kleisli: Kleisli[[_] =>> OptionT[F, _$2], A, Response[F]])(implicit evidence$3: Functor[F]): KleisliResponseOps[F, A]
Inherited from
KleisliSyntax