Packages

object Client

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

Value Members

  1. def apply[F[_]](f: (Request[F]) ⇒ Resource[F, Response[F]])(implicit F: Bracket[F, Throwable]): Client[F]
  2. def fromHttpApp[F[_]](app: HttpApp[F])(implicit F: Sync[F]): Client[F]

    Creates a client from the specified HttpApp.

    Creates a client from the specified HttpApp. Useful for generating pre-determined responses for requests in testing.

    app

    the HttpApp to respond to requests to this client

Deprecated Value Members

  1. def fromHttpService[F[_]](service: HttpRoutes[F])(implicit F: Sync[F]): Client[F]

    Creates a client from the specified service.

    Creates a client from the specified service. Useful for generating pre-determined responses for requests in testing.

    service

    the service to respond to requests to this client

    Annotations
    @deprecated
    Deprecated

    (Since version 0.19) Use fromHttpApp instead. Call service.orNotFound to turn into an HttpApp.