Routes
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- Routes.type
Members list
Value members
Concrete methods
Lifts PartialFunction based HttpRouteIO into an Option based HttpRoute applying a specified filter.
Lifts PartialFunction based HttpRouteIO into an Option based HttpRoute applying a specified filter.
Attributes
- filter
the
WebFilter
to apply to incoming requests before processing.- pf
the
HttpRouteIO
that maps requests toIO
computations producing responses.- Returns:
an
HttpRoute
that handles requests based on the givenHttpRouteIO
andWebFilter
.
Creates an HttpRoute
by applying the given HttpRouteRIO
to an environment and a WebFilter
. The resulting
HttpRoute
handles requests based on the given HttpRouteRIO
, which is a partial function that maps requests to
RIO
computations that may produce an HTTP response. The Env
parameter represents the environment required by
the computations, and is passed to the RIO
monad using the run
method. The WebFilter
is applied to incoming
requests before they are passed to the HttpRouteRIO
, and can be used to pre-process requests or perform
authentication or other security checks.
Creates an HttpRoute
by applying the given HttpRouteRIO
to an environment and a WebFilter
. The resulting
HttpRoute
handles requests based on the given HttpRouteRIO
, which is a partial function that maps requests to
RIO
computations that may produce an HTTP response. The Env
parameter represents the environment required by
the computations, and is passed to the RIO
monad using the run
method. The WebFilter
is applied to incoming
requests before they are passed to the HttpRouteRIO
, and can be used to pre-process requests or perform
authentication or other security checks.
Attributes
- env
the environment required by the
HttpRouteRIO
computations.- filter
the
WebFilter
to apply to incoming requests before processing.- pf
the
HttpRouteRIO
that maps requests toRIO
computations producing responses.- Returns:
an
HttpRoute
that handles requests based on the givenHttpRouteRIO
andWebFilter
.