object HttpApp
- Alphabetic
- By Inheritance
- HttpApp
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply[F[_]](run: (Request[F]) ⇒ F[Response[F]])(implicit arg0: Sync[F]): HttpApp[F]
Lifts a function into an HttpApp.
- def liftF[F[_]](fr: F[Response[F]]): HttpApp[F]
-
def
local[F[_]](f: (Request[F]) ⇒ Request[F])(fa: HttpApp[F])(implicit F: Sync[F]): HttpApp[F]
Transforms an HttpApp on its input.
Transforms an HttpApp on its input. The application of the transformed function is suspended in
F
to permit more efficient combination of routes viaSemigroupK
. -
def
notFound[F[_]](implicit arg0: Applicative[F]): HttpApp[F]
An app that always returns
404 Not Found
. - def pure[F[_]](r: Response[F])(implicit arg0: Applicative[F]): HttpApp[F]