Packages

o

org.http4s

AuthedService

object AuthedService

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

Value Members

  1. def apply[T, F[_]](pf: PartialFunction[AuthedRequest[F, T], F[Response[F]]])(implicit F: Applicative[F]): AuthedService[T, F]

    Lifts a partial function to an AuthedService.

    Lifts a partial function to an AuthedService. Responds with org.http4s.Response.notFoundFor, which generates a 404, for any request where pf is not defined.

  2. def empty[T, F[_]](implicit arg0: Applicative[F]): AuthedService[T, F]

    The empty service (all requests fallthrough).

    The empty service (all requests fallthrough).

    T

    - ignored.

Deprecated Value Members

  1. def lift[F[_], T](f: (AuthedRequest[F, T]) ⇒ F[Response[F]])(implicit arg0: Functor[F]): AuthedService[T, F]

    Lifts a total function to an AuthedService.

    Lifts a total function to an AuthedService. The function is expected to handle all requests it is given. If f is a PartialFunction, use apply instead.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.18) Use liftF with an OptionT[F, Response[F]] instead