EntityResponseGenerator
Helper for the generation of a org.http4s.Response which may contain a body
While it is possible to construct the org.http4s.Response manually, the EntityResponseGenerators offer shortcut syntax to make intention clear and concise.
- Example:
val resp: IO[Response] = Ok("Hello world!")
- Source:
- ResponseGenerator.scala
Value members
Abstract methods
Concrete methods
def apply[A](body: A, headers: ToRaw*)(implicit F: Applicative[F], w: EntityEncoder[G, A]): F[Response[G]]
- Source:
- ResponseGenerator.scala