Client

org.http4s.client.Client
See theClient companion trait
object Client

Attributes

Companion
trait
Source
Client.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Client.type

Members list

Value members

Concrete methods

def apply[F[_]](f: (Request[F]) => Resource[F, Response[F]])(implicit F: MonadCancelThrow[F]): Client[F]

Attributes

Source
Client.scala
def fromHttpApp[F[_]](app: HttpApp[F])(implicit F: Async[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.

Value parameters

app

the HttpApp to respond to requests to this client

Attributes

Source
Client.scala
def liftKleisli[F[_] : MonadCancelThrow, A](client: Client[F]): Client[[_] =>> Kleisli[F, A, _$12]]

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.

Attributes

Source
Client.scala