AllowResponseGenerator

org.http4s.dsl.impl.AllowResponseGenerator

Helper for the generation of a org.http4s.Response which must contain an Allow header and may contain a body.

A 405 status MUST contain an Allow header, which distinguishes this from other ResponseGenerators.

Attributes

Source:
ResponseGenerator.scala
Graph
Supertypes
class Any
Known subtypes

Members list

Concise view

Value members

Concrete methods

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

Attributes

Source:
ResponseGenerator.scala
def apply[A](allow: Allow, body: A, headers: ToRaw*)(implicit F: Applicative[F], w: EntityEncoder[G, A]): F[Response[G]]

Attributes

Source:
ResponseGenerator.scala

Inherited methods

Attributes

Inherited from:
ResponseGenerator
Source:
ResponseGenerator.scala