AsyncHttpClientFs2Backend

sttp.client3.asynchttpclient.fs2.AsyncHttpClientFs2Backend$
See theAsyncHttpClientFs2Backend 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](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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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]]

Attributes

updateConfig

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