AsyncHttpClientMonixBackend

sttp.client3.asynchttpclient.monix.AsyncHttpClientMonixBackend
See theAsyncHttpClientMonixBackend 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, webSocketBufferCapacity: Option[Int])(implicit s: Scheduler): Task[SttpBackend[Task, MonixStreams & WebSockets]]

Value parameters

s

The scheduler used for streaming request bodies. Defaults to the global scheduler.

Attributes

def resource(options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int])(implicit s: Scheduler): Resource[Task, SttpBackend[Task, MonixStreams & WebSockets]]

Makes sure the backend is closed after usage.

Makes sure the backend is closed after usage.

Value parameters

s

The scheduler used for streaming request bodies. Defaults to the global scheduler.

Attributes

def resourceUsingConfig(cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int])(implicit s: Scheduler): Resource[Task, SttpBackend[Task, MonixStreams & WebSockets]]

Makes sure the backend is closed after usage.

Makes sure the backend is closed after usage.

Value parameters

s

The scheduler used for streaming request bodies. Defaults to the global scheduler.

Attributes

def resourceUsingConfigBuilder(updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int])(implicit s: Scheduler): Resource[Task, SttpBackend[Task, MonixStreams & WebSockets]]

Makes sure the backend is closed after usage.

Makes sure the backend is closed after usage.

Value parameters

s

The scheduler used for streaming request bodies. Defaults to the global scheduler.

updateConfig

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

Attributes

def stub: SttpBackendStub[Task, MonixStreams & WebSockets]

Create a stub backend for testing, which uses the Task response wrapper, and supports Observable[ByteBuffer] streaming.

Create a stub backend for testing, which uses the Task response wrapper, and supports Observable[ByteBuffer] streaming.

See SttpBackendStub for details on how to configure stub responses.

Attributes

def usingClient(client: AsyncHttpClient, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int])(implicit s: Scheduler): SttpBackend[Task, MonixStreams & WebSockets]

Value parameters

s

The scheduler used for streaming request bodies. Defaults to the global scheduler.

Attributes

def usingConfig(cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int])(implicit s: Scheduler): Task[SttpBackend[Task, MonixStreams & WebSockets]]

Value parameters

s

The scheduler used for streaming request bodies. Defaults to the global scheduler.

Attributes

def usingConfigBuilder(updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int])(implicit s: Scheduler): Task[SttpBackend[Task, MonixStreams & WebSockets]]

Value parameters

s

The scheduler used for streaming request bodies. Defaults to the global scheduler.

updateConfig

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

Attributes