Lifts a partial function to an HttpService
.
Lifts a partial function to an HttpService
. Responds with
org.http4s.Response.fallthrough, which generates a 404, 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.