HttpApp
Functions for creating HttpApp kleislis.
- Source:
- HttpApp.scala
Value members
Concrete methods
Lifts a function into an HttpApp. The application of run
is
suspended in F
to permit more efficient combination of routes
via SemigroupK
.
Lifts a function into an HttpApp. The application of run
is
suspended in F
to permit more efficient combination of routes
via SemigroupK
.
- Type parameters:
- F
the effect of the HttpApp.
- Value parameters:
- run
the function to lift
- Returns:
an HttpApp that wraps
run
- Source:
- HttpApp.scala
Lifts an effectful Response into an HttpApp.
Lifts an effectful Response into an HttpApp.
- Type parameters:
- F
the effect of the HttpApp
- Value parameters:
- fr
the effectful Response to lift
- Returns:
an HttpApp that always returns
fr
- Source:
- HttpApp.scala
Transforms an HttpApp on its input. The application of the
transformed function is suspended in F
to permit more
efficient combination of routes via SemigroupK
.
Transforms an HttpApp 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 effect of the HttpApp
- Value parameters:
- f
a function to apply to the Request
- fa
the HttpApp to transform
- Returns:
An HttpApp whose input is transformed by
f
before being applied tofa
- Source:
- HttpApp.scala
An app that always returns 404 Not Found
.
An app that always returns 404 Not Found
.
- Source:
- HttpApp.scala
Lifts a Response into an HttpApp.
Lifts a Response into an HttpApp.
- Type parameters:
- F
the effect of the HttpApp
- Value parameters:
- r
the Response to lift
- Returns:
an Http that always returns
r
in effectF
- Source:
- HttpApp.scala