object AsyncHttpClientZioBackend
- Companion
- class
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 Params
- 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 Params
- updateConfig
A function which updates the default configuration (created basing on
options
).
Create a stub backend for testing, which uses the Task response wrapper, and supports ByteBuffer] streaming.
Create a stub backend for testing, which uses the Task response wrapper, and supports 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 Params
- updateConfig
A function which updates the default configuration (created basing on
options
).