EmptyResponseGenerator

trait EmptyResponseGenerator[F[_], G[_]] extends ResponseGenerator

Helper for the generation of a org.http4s.Response which will not contain a body

While it is possible to for the org.http4s.Response manually, the EntityResponseGenerators offer shortcut syntax to make intention clear and concise.

Example:
val resp: F[Response] = Status.Continue()
class Any
class ContinueOps[F, G]
class EarlyHintsOps[F, G]
class NoContentOps[F, G]
class NotModifiedOps[F, G]
class ResetContentOps[F, G]

Value members

Concrete methods

def apply()(implicit F: Applicative[F]): F[Response[G]]
def headers(header: ToRaw, _headers: ToRaw*)(implicit F: Applicative[F]): F[Response[G]]

Inherited methods

Inherited from:
ResponseGenerator