sttp.client3.asynchttpclient.zio.AsyncHttpClientZioBackend
See theAsyncHttpClientZioBackend companion class
object AsyncHttpClientZioBackend
Attributes
- Companion
- class
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Members list
Value members
Concrete methods
def apply(options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Task[SttpBackend[Task, ZioWebSocketsStreams]]
def layer(options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Layer[Throwable, SttpBackend[Task, ZioWebSocketsStreams]]
def layerUsingClient(client: AsyncHttpClient, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Layer[Nothing, SttpBackend[Task, ZioWebSocketsStreams]]
def layerUsingConfig(cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Layer[Throwable, SttpBackend[Task, ZioWebSocketsStreams]]
def layerUsingConfigBuilder(updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Layer[Throwable, SttpBackend[Task, ZioWebSocketsStreams]]
Value parameters
- updateConfig
-
A function which updates the default configuration (created basing on
options
).
Attributes
def scoped(options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): ZIO[Scope, Throwable, SttpBackend[Task, ZioWebSocketsStreams]]
def scopedUsingConfig(cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): ZIO[Scope, Throwable, SttpBackend[Task, ZioWebSocketsStreams]]
def scopedUsingConfigBuilder(updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): ZIO[Scope, Throwable, SttpBackend[Task, ZioWebSocketsStreams]]
Value parameters
- updateConfig
-
A function which updates the default configuration (created basing on
options
).
Attributes
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, ZioWebSocketsStreams]
def usingConfig(cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Task[SttpBackend[Task, ZioWebSocketsStreams]]
def usingConfigBuilder(updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Task[SttpBackend[Task, ZioWebSocketsStreams]]
Value parameters
- updateConfig
-
A function which updates the default configuration (created basing on
options
).
Attributes
In this article