EmptyResponseGenerator

org.http4s.dsl.impl.EmptyResponseGenerator

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.

Attributes

Example

val resp: F[Response] = Status.Continue()
Source
ResponseGenerator.scala
Graph
Supertypes
class Any
Known subtypes
class ContinueOps[F, G]
class EarlyHintsOps[F, G]
class NoContentOps[F, G]
class NotModifiedOps[F, G]
class ResetContentOps[F, G]
class SwitchingProtocolsOps[F, G]
Show all

Members list

Value members

Concrete methods

def apply()(implicit F: Applicative[F]): F[Response[G]]

Attributes

Source
ResponseGenerator.scala
def headers(header: ToRaw, _headers: ToRaw*)(implicit F: Applicative[F]): F[Response[G]]

Attributes

Source
ResponseGenerator.scala

Inherited and Abstract methods

def status: Status

Attributes

Inherited from:
ResponseGenerator
Source
ResponseGenerator.scala