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

Concise view

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. 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.

Attributes

app

the HttpApp to respond to requests to this client

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. 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.

Attributes

Source:
Client.scala