Packages

o

org.http4s

HttpService

object HttpService extends Serializable

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

Value Members

  1. def apply(pf: PartialFunction[Request, Task[Response]]): HttpService

    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.

  2. val empty: HttpService
  3. def lift(f: (Request) ⇒ Task[Response]): HttpService

    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.

Deprecated Value Members

  1. val notFound: Task[Response]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.15) Use Response.fallthrough instead