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.

class Any
class UnauthorizedOps[F, G]

Value members

Methods

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

Deprecated methods

@deprecated("Use ``apply(`WWW-Authenticate`(challenge, challenges)`` instead", "0.18.0-M2")
def apply(challenge: Challenge, challenges: Challenge*)(F: Applicative[F]): F[Response[G]]
Deprecated

Inherited methods

def status: Status
Inherited from
ResponseGenerator