Packages

object Response extends Serializable

Source
Message.scala
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Response
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply[F[_]](status: Status = Status.Ok, httpVersion: HttpVersion = HttpVersion.`HTTP/1.1`, headers: Headers = Headers.empty, body: EntityBody[F] = EmptyBody, attributes: Vault = Vault.empty): Response[F]

    Representation of the HTTP response to send back to the client

    Representation of the HTTP response to send back to the client

    status

    Status code and message

    headers

    Headers containing all response headers

    body

    EntityBody[F] representing the possible body of the response

    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

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