sttp.client3.asynchttpclient.zio.AsyncHttpClientZioBackend$
See theAsyncHttpClientZioBackend companion class
object AsyncHttpClientZioBackend
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass 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, SttpBackend[Task, ZioStreams & WebSockets]]
def layerUsingClient(client: AsyncHttpClient, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Layer[Nothing, SttpBackend[Task, ZioStreams & WebSockets]]
def layerUsingConfig(cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Layer[Throwable, SttpBackend[Task, ZioStreams & WebSockets]]
def layerUsingConfigBuilder(updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Layer[Throwable, SttpBackend[Task, ZioStreams & WebSockets]]
Attributes
- updateConfig
A function which updates the default configuration (created basing on
options
).
def scoped(options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): ZIO[Scope, Throwable, SttpBackend[Task, ZioStreams & WebSockets]]
def scopedUsingConfig(cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): ZIO[Scope, Throwable, SttpBackend[Task, ZioStreams & WebSockets]]
def scopedUsingConfigBuilder(updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): ZIO[Scope, Throwable, SttpBackend[Task, ZioStreams & WebSockets]]
Attributes
- 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.
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
).