object Client
- Source
- Client.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Client
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- def apply[F[_]](f: (Request[F]) ⇒ Resource[F, Response[F]])(implicit F: MonadCancelThrow[F]): Client[F]
-
def
fromHttpApp[F[_]](app: HttpApp[F])(implicit F: Async[F]): Client[F]
Creates a client from the specified HttpApp.
-
def
liftKleisli[F[_], A](client: Client[F])(implicit arg0: MonadCancelThrow[F]): Client[[γ$0$]Kleisli[F, A, γ$0$]]
This method introduces an important way for the effectful backends to allow tracing.
This method introduces an important way for the effectful backends to allow tracing. As Kleisli types form the backend of tracing and these transformations are non-trivial.
Deprecated Value Members
-
def
fromHttpService[F[_]](service: HttpRoutes[F])(implicit F: Async[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.