object AuthedService extends Serializable
- Source
- package.scala
- Alphabetic
- By Inheritance
- AuthedService
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply[T](pf: PartialFunction[AuthedRequest[T], Task[Response]]): AuthedService[T]
Lifts a partial function to an
AuthedService
.Lifts a partial function to an
AuthedService
. Responds with org.http4s.Response.fallthrough, which generates a 404, for any request wherepf
is not defined. -
val
empty: HttpService
Oops, should be of type
AuthedService[T]
.Oops, should be of type
AuthedService[T]
. UseAuthedService.lift(_ => Response.fallthrough)
instead. -
def
lift[T](f: (AuthedRequest[T]) ⇒ Task[Response]): AuthedService[T]
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. Iff
is aPartialFunction
, useapply
instead.