EntityResponseGenerator
org.http4s.dsl.impl.EntityResponseGenerator
trait EntityResponseGenerator[F[_], G[_]] extends ResponseGenerator
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.
Attributes
- Example
-
val resp: IO[Response] = Ok("Hello world!")
- Source
- ResponseGenerator.scala
- Graph
-
- Supertypes
-
trait ResponseGeneratorclass Any
- Known subtypes
-
Members list
In this article