sttp.client3.asynchttpclient.cats.AsyncHttpClientCatsBackend$
See theAsyncHttpClientCatsBackend companion class
object AsyncHttpClientCatsBackend
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
Members list
Concise view
Value members
Concrete methods
def apply[F[_] : Async](options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): F[SttpBackend[F, Any]]
def resource[F[_] : Async](options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): Resource[F, SttpBackend[F, Any]]
Makes sure the backend is closed after usage.
Makes sure the backend is closed after usage.
Attributes
def resourceUsingConfig[F[_] : Async](cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): Resource[F, SttpBackend[F, Any]]
Makes sure the backend is closed after usage.
Makes sure the backend is closed after usage.
Attributes
def resourceUsingConfigBuilder[F[_] : Async](updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): Resource[F, SttpBackend[F, Any]]
Makes sure the backend is closed after usage.
Makes sure the backend is closed after usage.
Attributes
- updateConfig
A function which updates the default configuration (created basing on
options
).
Create a stub backend for testing, which uses the F
response wrapper, and doesn't support streaming.
Create a stub backend for testing, which uses the F
response wrapper, and doesn't support streaming.
See SttpBackendStub for details on how to configure stub responses.
Attributes
def usingClient[F[_] : Async](client: AsyncHttpClient, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): SttpBackend[F, Any]
def usingConfig[F[_] : Async](cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): F[SttpBackend[F, Any]]
def usingConfigBuilder[F[_] : Async](updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): F[SttpBackend[F, Any]]
Attributes
- updateConfig
A function which updates the default configuration (created basing on
options
).