sttp.client4.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: BackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Task[WebSocketStreamBackend[Task, ZioStreams]]
def layer(options: BackendOptions, 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: BackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Layer[Throwable, SttpClient]
Value parameters
- updateConfig
-
A function which updates the default configuration (created basing on
options
).
Attributes
def managed(options: BackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): TaskManaged[WebSocketStreamBackend[Task, ZioStreams]]
def managedUsingConfig(cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): TaskManaged[WebSocketStreamBackend[Task, ZioStreams]]
def managedUsingConfigBuilder(updateConfig: Builder => Builder, options: BackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): TaskManaged[WebSocketStreamBackend[Task, ZioStreams]]
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 Stream[Throwable, ByteBuffer]
streaming.
Create a stub backend for testing, which uses the Task response wrapper, and supports Stream[Throwable, ByteBuffer]
streaming.
See WebSocketStreamBackendStub for details on how to configure stub responses.
Attributes
def usingClient[R](runtime: Runtime[R], client: AsyncHttpClient, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): WebSocketStreamBackend[Task, ZioStreams]
def usingConfig(cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Task[WebSocketStreamBackend[Task, ZioStreams]]
def usingConfigBuilder(updateConfig: Builder => Builder, options: BackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Task[WebSocketStreamBackend[Task, ZioStreams]]
Value parameters
- updateConfig
-
A function which updates the default configuration (created basing on
options
).
Attributes
Concrete fields
In this article