Lifts a partial function to HttpRoutes.
Lifts a partial function to HttpRoutes. Responds with
OptionT.none
for any request where pf
is not defined.
Unlike HttpRoutes.of
, does not suspend the application of pf
.
(Since version 0.19) Replaced by HttpRoutes.of
(Since version 0.19) Replaced by HttpRoutes.empty
Lifts a total function to an HttpService
.
Lifts a total function to an HttpService
. The function is expected to
handle all requests it is given. If f
is a PartialFunction
, use
apply
instead.
(Since version 0.18) Use liftF with an OptionT[F, Response[F]] instead
(Since version 0.19) Replaced by HttpRoutes