AsyncHttpClientCatsBackend

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_]](options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder)(`evidence$5`: Concurrent[F], `evidence$6`: ContextShift[F]): 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].

def resource[F[_]](options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder)(`evidence$7`: Concurrent[F], `evidence$8`: ContextShift[F]): 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].

def resourceUsingConfig[F[_]](cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder)(`evidence$11`: Concurrent[F], `evidence$12`: ContextShift[F]): 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].

def resourceUsingConfigBuilder[F[_]](updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder)(`evidence$15`: Concurrent[F], `evidence$16`: ContextShift[F]): 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].

Value Params
updateConfig

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

def stub[F[_]](`evidence$19`: Concurrent[F]): 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[_]](client: AsyncHttpClient, customizeRequest: BoundRequestBuilder => BoundRequestBuilder)(`evidence$17`: Concurrent[F], `evidence$18`: ContextShift[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].

def usingConfig[F[_]](cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder)(`evidence$9`: Concurrent[F], `evidence$10`: ContextShift[F]): 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].

def usingConfigBuilder[F[_]](updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder)(`evidence$13`: Concurrent[F], `evidence$14`: ContextShift[F]): 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].

Value Params
updateConfig

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