WwwAuthenticateResponseGenerator

org.http4s.dsl.impl.WwwAuthenticateResponseGenerator

Helper for the generation of a org.http4s.Response which must contain a WWW-Authenticate header and may contain a body.

A 401 status MUST contain a WWW-Authenticate header, which distinguishes this from other ResponseGenerators.

Attributes

Source
ResponseGenerator.scala
Graph
Supertypes
class Any
Known subtypes
class UnauthorizedOps[F, G]

Members list

Value members

Concrete methods

def apply[A](authenticate: WWW-Authenticate, body: A, headers: ToRaw*)(implicit F: Applicative[F], w: EntityEncoder[G, A]): F[Response[G]]

Attributes

Source
ResponseGenerator.scala

Inherited methods

def status: Status

Attributes

Inherited from:
ResponseGenerator
Source
ResponseGenerator.scala