Packages

o

org.http4s

AuthedService

object AuthedService extends Serializable

Source
package.scala
Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AuthedService
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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 where pf is not defined.

  2. val empty: HttpService

    Oops, should be of type AuthedService[T].

    Oops, should be of type AuthedService[T]. Use AuthedService.lift(_ => Response.fallthrough) instead.

  3. 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. If f is a PartialFunction, use apply instead.