AsyncHttpClientFs2Backend

sttp.client4.asynchttpclient.fs2.AsyncHttpClientFs2Backend
See theAsyncHttpClientFs2Backend companion class

Attributes

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

Members list

Value members

Concrete methods

def apply[F[_] : Async](dispatcher: Dispatcher[F], options: BackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): F[WebSocketStreamBackend[F, Fs2Streams[F]]]
def resource[F[_] : Async](options: BackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Resource[F, WebSocketStreamBackend[F, Fs2Streams[F]]]

Makes sure the backend is closed after usage.

Makes sure the backend is closed after usage.

Attributes

def resourceUsingConfig[F[_] : Async](cfg: AsyncHttpClientConfig, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Resource[F, WebSocketStreamBackend[F, Fs2Streams[F]]]

Makes sure the backend is closed after usage.

Makes sure the backend is closed after usage.

Attributes

def resourceUsingConfigBuilder[F[_] : Async](updateConfig: Builder => Builder, options: BackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): Resource[F, WebSocketStreamBackend[F, Fs2Streams[F]]]

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).

Attributes

def stub[F[_] : Async]: WebSocketStreamBackendStub[F, Fs2Streams[F]]

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 WebSocketStreamBackendStub for details on how to configure stub responses.

Attributes

def usingClient[F[_] : Async](client: AsyncHttpClient, dispatcher: Dispatcher[F], customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): WebSocketStreamBackend[F, Fs2Streams[F]]
def usingConfig[F[_] : Async](cfg: AsyncHttpClientConfig, dispatcher: Dispatcher[F], customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): F[WebSocketStreamBackend[F, Fs2Streams[F]]]
def usingConfigBuilder[F[_] : Async](dispatcher: Dispatcher[F], updateConfig: Builder => Builder, options: BackendOptions, customizeRequest: BoundRequestBuilder => BoundRequestBuilder, webSocketBufferCapacity: Option[Int]): F[WebSocketStreamBackend[F, Fs2Streams[F]]]

Value parameters

updateConfig

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

Attributes