Maintains Basic HTTP Auth for an arbitrary Endpoint.
An Endpoint that skips all path segments.
An identity Endpoint.
An Exception representing a failed authorization with BasicAuth.
An evaluating Endpoint that reads a required chunked streaming binary body, interpreted as
an AsyncStream[Buf]
.
An evaluating Endpoint that reads a required binary request body, interpreted as an
Array[Byte]
, or throws a Error.NotPresent exception.
An evaluating Endpoint that reads a required binary request body, interpreted as an
Array[Byte]
, or throws a Error.NotPresent exception. The returned Endpoint only
matches non-chunked (non-streamed) requests.
An evaluating Endpoint that reads a binary request body, interpreted as a Array[Byte]
,
into an Option
.
An Endpoint that reads the required request body represented as CT
(ContentType
) and
interpreted as A
, or throws an Error.NotPresent exception.
An Endpoint that reads the required request body represented as CT
(ContentType
) and
interpreted as A
, or throws an Error.NotPresent exception. The returned Endpoint
only matches non-chunked (non-streamed) requests.
An Endpoint that reads an optional request body represented as CT
(ContentType
) and
interpreted as A
, into an Option
.
A matching Endpoint that reads a boolean value from the current path segment.
A matching Endpoint that reads a boolean tail from the current path segment.
A combinator that wraps the given Endpoint with additional check of the HTTP method.
An evaluating Endpoint that reads a required cookie from the request or raises an Error.NotPresent exception when the cookie is missing.
An evaluating Endpoint that reads an optional HTTP cookie from the request into an
Option
.
A combinator that wraps the given Endpoint with additional check of the HTTP method.
An evaluating Endpoint that reads a required file upload from a multipart/form-data request.
An evaluatingEndpoint that reads an optional file upload from a multipart/form-data request
into an Option
.
A combinator that wraps the given Endpoint with additional check of the HTTP method.
A combinator that wraps the given Endpoint with additional check of the HTTP method.
An evaluating Endpoint that reads a required HTTP header name
from the request or raises
an Error.NotPresent exception when the header is missing.
A matching Endpoint that only matches the requests that contain a given header name
.
An evaluating Endpoint that reads an optional HTTP header name
from the request into an
Option
.
A matching Endpoint that reads an integer value from the current path segment.
A matching Endpoint that reads an integer tail from the current path segment.
Alias for body[A, Application.Json]
.
Alias for bodyOption[A, Application.Json]
.
A matching Endpoint that reads a long value from the current path segment.
A matching Endpoint that reads a long tail from the current path segment.
A combinator that wraps the given Endpoint with additional check of the HTTP method.
An evaluating Endpoint that reads a required query-string param name
from the
request or raises an Error.NotPresent exception when the param is missing; an
Error.NotValid exception is the param is empty.
A matching Endpoint that only matches the requests that contain a given query-string
param name
.
An evaluating Endpoint that reads an optional query-string param name
from the request
into an Option
.
An evaluating Endpoint that reads an optional (in a meaning that a resulting
Seq
may be empty) multi-value query-string param name
from the request into a Seq
.
An evaluating Endpoint that reads a required multi-value query-string param name
from the request into a NonEmptyList
or raises a Error.NotPresent exception
when the params are missing or empty.
A combinator that wraps the given Endpoint with additional check of the HTTP method.
A matching Endpoint that reads a value of type A
(using the implicit
DecodePath instances defined for A
) from the current path segment.
A matching Endpoint that reads a string value from the current path segment.
A matching Endpoint that reads a string value from the current path segment.
This is an experimental API and might be removed without any notice.
A combinator that wraps the given Endpoint with additional check of the HTTP method.
A combinator that wraps the given Endpoint with additional check of the HTTP method.
A root Endpoint that always matches and extracts the current request.
A matching Endpoint that reads a string value from the current path segment.
An evaluating Endpoint that reads the required request body, interpreted as a String
, or
throws an Error.NotPresent exception.
An evaluating Endpoint that reads the required request body, interpreted as a String
, or
throws an Error.NotPresent exception. The returned Endpoint only matches non-chunked
(non-streamed) requests.
An evaluating Endpoint that reads an optional request body, interpreted as a String
, into
an Option
.
A matching Endpoint that reads a string tail from the current path segment.
Alias for body[A, Text.Plain]
Alias for bodyOption[A, Text.Plain]
A combinator that wraps the given Endpoint with additional check of the HTTP method.
A matching Endpoint that reads an UUID value from the current path segment.
A matching Endpoint that reads an UUID tail from the current path segment.
An Endpoint that reads the required request body, interpreted as Buf, or throws an Error.NotPresent exception.
An Endpoint that reads the required request body, interpreted as Buf, or throws an Error.NotPresent exception. The returned Endpoint only matches non-chunked (non-streamed) requests.
(Since version 0.11) Use body[A, ContentType] instead
An Endpoint that reads an optional request body, interpreted as Buf, into
an Option
.
An evaluating Endpoint that reads a required (in a meaning that a resulting Seq
will have
at least one element) multi-value query-string param name
from the request into a Seq
or
raises a Error.NotPresent exception when the params are missing or empty.
An evaluating Endpoint that reads a required (in a meaning that a resulting Seq
will have
at least one element) multi-value query-string param name
from the request into a Seq
or
raises a Error.NotPresent exception when the params are missing or empty.
(Since version 0.11) Use paramsNel and NonEmptyList instead
A collection of Endpoint combinators.