Response

org.http4s.Response$
See theResponse companion class
object Response extends KleisliSyntax

Attributes

Companion:
class
Source:
Message.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

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

Attributes

attributes

org.typelevel.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

Source:
Message.scala
def notFound[F[_]]: Response[F]

Attributes

Source:
Message.scala
def notFoundFor[F[_] : Applicative](request: Request[F])(implicit evidence$2: Applicative[F], encoder: EntityEncoder[F, String]): F[Response[F]]

Attributes

Source:
Message.scala
def timeout[F[_]]: Response[F]

Attributes

Source:
Message.scala
def unapply[F[_]](response: Response[F]): Option[(Status, HttpVersion, Headers, EntityBody[F], Vault)]

Attributes

Source:
Message.scala

Implicits

Inherited implicits

implicit def http4sKleisliAuthedRoutesSyntax[F[_], A](authedRoutes: AuthedRoutes[A, F]): KleisliAuthedRoutesOps[F, A]

Attributes

Inherited from:
KleisliSyntax
Source:
KleisliSyntax.scala

Attributes

Inherited from:
KleisliSyntax
Source:
KleisliSyntax.scala

Attributes

Inherited from:
KleisliSyntax
Source:
KleisliSyntax.scala
implicit def http4sKleisliResponseSyntaxOptionT[F[_] : Functor, A](kleisli: Kleisli[[_] =>> OptionT[F, _$2], A, Response[F]]): KleisliResponseOps[F, A]

Attributes

Inherited from:
KleisliSyntax
Source:
KleisliSyntax.scala