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: MonadCancelThrow[F]): Client[F]
def fromHttpApp[F[_]](app: HttpApp[F])(implicit F: Async[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: MonadCancelThrow[F]): Client[[_] =>> Kleisli[F, A, _$9]]

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.