HttpRoutes
Functions for creating HttpRoutes kleislis.
Attributes
- Source
- HttpRoutes.scala
- Graph
-
- Supertypes
- Self type
-
HttpRoutes.type
Members list
Value members
Concrete methods
Lifts a function into an HttpRoutes. The application of run
is suspended in F
to permit more efficient combination of routes via SemigroupK
.
Lifts a function into an HttpRoutes. The application of run
is suspended in F
to permit more efficient combination of routes via SemigroupK
.
Type parameters
- F
-
the effect of the HttpRoutes
Value parameters
- run
-
the function to lift
Attributes
- Returns
-
an HttpRoutes that wraps
run
- Source
- HttpRoutes.scala
An empty set of routes. Always responds with OptionT.none
.
An empty set of routes. Always responds with OptionT.none
.
Type parameters
- F
-
the base effect of the HttpRoutes
Attributes
- Source
- HttpRoutes.scala
Lifts an effectful Response into an HttpRoutes.
Lifts an effectful Response into an HttpRoutes.
Type parameters
- F
-
the effect of the HttpRoutes
Value parameters
- fr
-
the effectful Response to lift
Attributes
- Returns
-
an HttpRoutes that always returns
fr
- Source
- HttpRoutes.scala
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
.
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
.
Type parameters
- F
-
the base effect of the HttpRoutes
Value parameters
- f
-
a function to apply to the Request
- fa
-
the HttpRoutes to transform
Attributes
- Returns
-
An HttpRoutes whose input is transformed by
f
before being applied tofa
- Source
- HttpRoutes.scala
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
.
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
.
Type parameters
- F
-
the base effect of the HttpRoutes - Defer suspends evaluation of routes, so only 1 section of routes is checked at a time.
Value parameters
- pf
-
the partial function to lift
Attributes
- Returns
-
An HttpRoutes that returns some Response in an
OptionT[F, *]
whereverpf
is defined, anOptionT.none
wherever it is not - Source
- HttpRoutes.scala
Lifts a Response into an HttpRoutes.
Lifts a Response into an HttpRoutes.
Type parameters
- F
-
the base effect of the HttpRoutes
Value parameters
- r
-
the Response to lift
Attributes
- Returns
-
an HttpRoutes that always returns
r
in effectOptionT[F, *]
- Source
- HttpRoutes.scala
Lifts a partial function into an HttpRoutes. The application of the partial function is not suspended in F
, unlike of. This allows for less constraints when not combining many routes.
Lifts a partial function into an HttpRoutes. The application of the partial function is not suspended in F
, unlike of. This allows for less constraints when not combining many routes.
Type parameters
- F
-
the base effect of the HttpRoutes
Value parameters
- pf
-
the partial function to lift
Attributes
- Returns
-
An HttpRoutes that returns some Response in an
OptionT[F, *]
whereverpf
is defined, anOptionT.none
wherever it is not - Source
- HttpRoutes.scala