ContextRoutes
- Source:
- ContextRoutes.scala
Value members
Concrete methods
Lifts a function into an ContextRoutes. The application of run
is suspended in F
to permit more efficient combination of
routes via SemigroupK
.
Lifts a function into an ContextRoutes. The application of run
is suspended in F
to permit more efficient combination of
routes via SemigroupK
.
- Type parameters:
- F
the effect of the ContextRoutes
- T
the type of the auth info in the ContextRequest accepted by the ContextRoutes
- Value parameters:
- run
the function to lift
- Returns:
an ContextRoutes that wraps
run
- Source:
- ContextRoutes.scala
The empty service (all requests fallthrough).
The empty service (all requests fallthrough).
- Type parameters:
- T
- ignored.
- Source:
- ContextRoutes.scala
Lifts a partial function into an ContextRoutes. The application of the
partial function is suspended in F
to permit more efficient combination
of authed services via SemigroupK
.
Lifts a partial function into an ContextRoutes. The application of the
partial function is suspended in F
to permit more efficient combination
of authed services via SemigroupK
.
- Type parameters:
- F
the base effect of the ContextRoutes
- Value parameters:
- pf
the partial function to lift
- Returns:
An ContextRoutes that returns some Response in an
OptionT[F, *]
whereverpf
is defined, anOptionT.none
wherever it is not- Source:
- ContextRoutes.scala
Lifts a partial function into an ContextRoutes. 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 ContextRoutes. 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 ContextRoutes
- Value parameters:
- pf
the partial function to lift
- Returns:
A ContextRoutes that returns some Response in an
OptionT[F, *]
whereverpf
is defined, anOptionT.none
wherever it is not- Source:
- ContextRoutes.scala