AsyncHttpClientFs2Backend

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_] : ContextShift](blocker: Blocker, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): F[SttpBackend[F, Fs2Streams[F] & WebSockets]]
def resource[F[_] : ContextShift](blocker: Blocker, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Resource[F, SttpBackend[F, Fs2Streams[F] & WebSockets]]

Makes sure the backend is closed after usage.

Makes sure the backend is closed after usage.

def resourceUsingConfig[F[_] : ContextShift](cfg: AsyncHttpClientConfig, blocker: Blocker, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Resource[F, SttpBackend[F, Fs2Streams[F] & WebSockets]]

Makes sure the backend is closed after usage.

Makes sure the backend is closed after usage.

def resourceUsingConfigBuilder[F[_] : ContextShift](blocker: Blocker, updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Resource[F, SttpBackend[F, Fs2Streams[F] & WebSockets]]

Makes sure the backend is closed after usage.

Makes sure the backend is closed after usage.

Value parameters:
updateConfig

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

def stub[F[_] : Concurrent]: SttpBackendStub[F, Fs2Streams[F] & WebSockets]

Create a stub backend for testing, which uses the F response wrapper, and supports Stream[F, ByteBuffer] streaming.

Create a stub backend for testing, which uses the F response wrapper, and supports Stream[F, ByteBuffer] streaming.

See SttpBackendStub for details on how to configure stub responses.

def usingClient[F[_] : ContextShift](client: AsyncHttpClient, blocker: Blocker, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): SttpBackend[F, Fs2Streams[F] & WebSockets]
def usingConfig[F[_] : ContextShift](blocker: Blocker, cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): F[SttpBackend[F, Fs2Streams[F] & WebSockets]]
def usingConfigBuilder[F[_] : ContextShift](blocker: Blocker, updateConfig: Builder => Builder, options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): F[SttpBackend[F, Fs2Streams[F] & WebSockets]]
Value parameters:
updateConfig

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