AsyncHttpClientFs2Backend

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_] : Async](dispatcher: Dispatcher[F], options: SttpBackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): F[SttpBackend[F, Fs2Streams[F] & WebSockets]]
def resource[F[_] : Async](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[_] : Async](cfg: AsyncHttpClientConfig, 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[_] : Async](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[_] : Async]: 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[_] : Async](client: AsyncHttpClient, dispatcher: Dispatcher[F], customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): SttpBackend[F, Fs2Streams[F] & WebSockets]
def usingConfig[F[_] : Async](cfg: AsyncHttpClientConfig, dispatcher: Dispatcher[F], customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): F[SttpBackend[F, Fs2Streams[F] & WebSockets]]
def usingConfigBuilder[F[_] : Async](dispatcher: Dispatcher[F], 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).