AsyncHttpClient

org.http4s.asynchttpclient.client.AsyncHttpClient$

Attributes

Deprecated
true
Source
AsyncHttpClient.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def allocate[F[_]](config: AsyncHttpClientConfig)(implicit F: Async[F]): F[(Client[F], F[Unit])]

Allocates a Client and its shutdown mechanism for freeing resources.

Allocates a Client and its shutdown mechanism for freeing resources.

Attributes

Source
AsyncHttpClient.scala
def configure(configurationFn: Builder => Builder): AsyncHttpClientConfig

Create a custom AsyncHttpClientConfig

Create a custom AsyncHttpClientConfig

Value parameters

configurationFn

function that maps from the builder of the defaultConfig to the custom config's builder

Attributes

Returns

a custom configuration.

Source
AsyncHttpClient.scala
def fromClient[F[_]](httpClient: AsyncHttpClient)(implicit F: Async[F]): Resource[F, Client[F]]

Create a HTTP client with an existing AsyncHttpClient client. The supplied client is NOT closed by this Resource!

Create a HTTP client with an existing AsyncHttpClient client. The supplied client is NOT closed by this Resource!

Attributes

Source
AsyncHttpClient.scala
def resource[F[_]](config: AsyncHttpClientConfig)(implicit F: Async[F]): Resource[F, Client[F]]

Create an HTTP client based on the AsyncHttpClient library

Create an HTTP client based on the AsyncHttpClient library

Value parameters

config

configuration for the client

Attributes

Source
AsyncHttpClient.scala
def stream[F[_]](config: AsyncHttpClientConfig)(implicit F: Async[F]): Stream[F, Client[F]]

Create a bracketed HTTP client based on the AsyncHttpClient library.

Create a bracketed HTTP client based on the AsyncHttpClient library.

Value parameters

config

configuration for the client

Attributes

Returns

a singleton stream of the client. The client will be shutdown when the stream terminates.

Source
AsyncHttpClient.scala

Concrete fields

val defaultConfig: DefaultAsyncHttpClientConfig

Attributes

Source
AsyncHttpClient.scala