AsyncHttpClientZioBackend

sttp.client3.asynchttpclient.zio.AsyncHttpClientZioBackend$
See theAsyncHttpClientZioBackend 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, webSocketBufferCapacity: Option[Int]): Task[SttpBackend[Task, ZioStreams & WebSockets]]
def layer(options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Layer[Throwable, SttpClient]
def layerUsingClient(client: AsyncHttpClient, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Layer[Nothing, SttpClient]
def layerUsingConfig(cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Layer[Throwable, SttpClient]
def layerUsingConfigBuilder(updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Layer[Throwable, SttpClient]

Attributes

updateConfig

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

def managed(options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): TaskManaged[SttpBackend[Task, ZioStreams & WebSockets]]
def managedUsingConfig(cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): TaskManaged[SttpBackend[Task, ZioStreams & WebSockets]]
def managedUsingConfigBuilder(updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): TaskManaged[SttpBackend[Task, ZioStreams & WebSockets]]

Attributes

updateConfig

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

def stub: SttpBackendStub[Task, ZioStreams & WebSockets]

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

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

See SttpBackendStub for details on how to configure stub responses.

Attributes

def usingClient[R](runtime: Runtime[R], client: AsyncHttpClient, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): SttpBackend[Task, ZioStreams & WebSockets]
def usingConfig(cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Task[SttpBackend[Task, ZioStreams & WebSockets]]
def usingConfigBuilder(updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Task[SttpBackend[Task, ZioStreams & WebSockets]]

Attributes

updateConfig

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

Concrete fields

val stubLayer: Layer[Throwable, SttpClient & SttpClientStubbing]