AsyncHttpClientFutureBackend

sttp.client3.asynchttpclient.future.AsyncHttpClientFutureBackend$
See theAsyncHttpClientFutureBackend companion class

Attributes

Companion:
class
Deprecated
The async-http-client project is no longer maintained
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply(options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder)(implicit ec: ExecutionContext): SttpBackend[Future, Any]

Attributes

ec

The execution context for running non-network related operations, e.g. mapping responses. Defaults to the global execution context.

def stub(implicit ec: ExecutionContext): SttpBackendStub[Future, Any]

Create a stub backend for testing, which uses the Future response wrapper, and doesn't support streaming.

Create a stub backend for testing, which uses the Future response wrapper, and doesn't support streaming.

See SttpBackendStub for details on how to configure stub responses.

Attributes

def usingClient(client: AsyncHttpClient, customizeRequest: BoundRequestBuilder => BoundRequestBuilder)(implicit ec: ExecutionContext): SttpBackend[Future, Any]

Attributes

ec

The execution context for running non-network related operations, e.g. mapping responses. Defaults to the global execution context.

def usingConfig(cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder)(implicit ec: ExecutionContext): SttpBackend[Future, Any]

Attributes

ec

The execution context for running non-network related operations, e.g. mapping responses. Defaults to the global execution context.

def usingConfigBuilder(updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder)(implicit ec: ExecutionContext): SttpBackend[Future, Any]

Attributes

ec

The execution context for running non-network related operations, e.g. mapping responses. Defaults to the global execution context.

updateConfig

A function which updates the default configuration (created basing on options).