AsyncHttpClientCatsBackend

sttp.client3.asynchttpclient.cats.AsyncHttpClientCatsBackend$
See theAsyncHttpClientCatsBackend companion class

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply[F[_] : ContextShift](options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): F[SttpBackend[F, Any]]

After sending a request, always shifts to the thread pool backing the given ContextShift[F].

After sending a request, always shifts to the thread pool backing the given ContextShift[F].

Attributes

def resource[F[_] : ContextShift](options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): Resource[F, SttpBackend[F, Any]]

Makes sure the backend is closed after usage. After sending a request, always shifts to the thread pool backing the given ContextShift[F].

Makes sure the backend is closed after usage. After sending a request, always shifts to the thread pool backing the given ContextShift[F].

Attributes

def resourceUsingConfig[F[_] : ContextShift](cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): Resource[F, SttpBackend[F, Any]]

Makes sure the backend is closed after usage. After sending a request, always shifts to the thread pool backing the given ContextShift[F].

Makes sure the backend is closed after usage. After sending a request, always shifts to the thread pool backing the given ContextShift[F].

Attributes

def resourceUsingConfigBuilder[F[_] : ContextShift](updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): Resource[F, SttpBackend[F, Any]]

Makes sure the backend is closed after usage. After sending a request, always shifts to the thread pool backing the given ContextShift[F].

Makes sure the backend is closed after usage. After sending a request, always shifts to the thread pool backing the given ContextShift[F].

Attributes

updateConfig

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

def stub[F[_] : Concurrent]: 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.

Attributes

def usingClient[F[_] : ContextShift](client: AsyncHttpClient, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): SttpBackend[F, Any]

After sending a request, always shifts to the thread pool backing the given ContextShift[F].

After sending a request, always shifts to the thread pool backing the given ContextShift[F].

Attributes

def usingConfig[F[_] : ContextShift](cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): F[SttpBackend[F, Any]]

After sending a request, always shifts to the thread pool backing the given ContextShift[F].

After sending a request, always shifts to the thread pool backing the given ContextShift[F].

Attributes

def usingConfigBuilder[F[_] : ContextShift](updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder): F[SttpBackend[F, Any]]

After sending a request, always shifts to the thread pool backing the given ContextShift[F].

After sending a request, always shifts to the thread pool backing the given ContextShift[F].

Attributes

updateConfig

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