AsyncHttpClientFutureBackend

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

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

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

Value parameters

ec

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

Attributes

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]

Value parameters

ec

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

Attributes

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

Value parameters

ec

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

Attributes

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

Value parameters

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

Attributes