AsyncHttpClientCatsBackend

Companion
class
class Object
trait Matchable
class Any

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.

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.

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.

Value Params
updateConfig

A function which updates the default configuration (created basing on options).

def stub[F[_] : Async]: SttpBackendStub[F, Any]

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.

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]]
Value Params
updateConfig

A function which updates the default configuration (created basing on options).