Client

object Client
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_]](f: Request[F] => Resource[F, Response[F]])(implicit F: BracketThrow[F]): Client[F]
def fromHttpApp[F[_]](app: HttpApp[F])(implicit F: Sync[F]): Client[F]

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

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

Value Params
app

the HttpApp to respond to requests to this client

def liftKleisli[F[_], A](client: Client[F])(implicit evidence$2: BracketThrow[F], evidence$3: Defer[F]): Client[[_] =>> Kleisli[F, A, _$10]]

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.

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 methods

@deprecated("Use fromHttpApp instead. Call service.orNotFound to turn into an HttpApp.", "0.19")
def fromHttpService[F[_]](service: HttpRoutes[F])(implicit F: Sync[F]): Client[F]

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

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

Value Params
service

the service to respond to requests to this client

Deprecated