Lifts a function into an HttpRoutes.
Lifts a function into an HttpRoutes. The application of run
is suspended in F
to permit more efficient combination of
routes via SemigroupK
.
the effect of the HttpRoutes
the function to lift
an HttpRoutes that wraps run
An empty set of routes.
An empty set of routes. Always responds with OptionT.none
.
the base effect of the HttpRoutes
Lifts an effectful Response into an HttpRoutes.
Lifts an effectful Response into an HttpRoutes.
the effect of the HttpRoutes
the effectful Response to lift
an HttpRoutes that always returns fr
Transforms an HttpRoutes on its input.
Transforms an HttpRoutes on its input. The application of the
transformed function is suspended in F
to permit more
efficient combination of routes via SemigroupK
.
the base effect of the HttpRoutes
a function to apply to the Request
the HttpRoutes to transform
An HttpRoutes whose input is transformed by f
before
being applied to fa
Lifts a partial function into an HttpRoutes.
Lifts a partial function into an HttpRoutes. The application of the
partial function is suspended in F
to permit more efficient combination
of routes via SemigroupK
.
the base effect of the HttpRoutes
the partial function to lift
An HttpRoutes that returns some Response in an OptionT[F, ?]
wherever pf
is defined, an OptionT.none
wherever it is not
Lifts a Response into an HttpRoutes.
Lifts a Response into an HttpRoutes.
the base effect of the HttpRoutes
the Response to lift
an HttpRoutes that always returns r
in effect OptionT[F, ?]
Functions for creating HttpRoutes kleislis.