AsyncHttpClientZioBackend

Companion:
class
class Object
trait Matchable
class Any

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]
Value parameters:
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]]
Value parameters:
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.

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]]
Value parameters:
updateConfig

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

Concrete fields

val stubLayer: Layer[Throwable, SttpClient & SttpClientStubbing]