Lifts a partial function to an HttpService
.
Lifts a partial function to an HttpService
.
Responds with OptionT.none
for any request where pf
is not defined.
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