t

org.http4s.dsl.impl

AllowResponseGenerator

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

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.

Source
ResponseGenerator.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AllowResponseGenerator
  2. ResponseGenerator
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def status: Status
    Definition Classes
    ResponseGenerator

Concrete Value Members

  1. def apply[A](allow: Allow, body: A, headers: Header*)(implicit F: Applicative[F], w: EntityEncoder[G, A]): F[Response[G]]
  2. def apply(allow: Allow, headers: Header*)(implicit F: Applicative[F]): F[Response[G]]