HttpClientFs2Backend

sttp.client3.httpclient.fs2.HttpClientFs2Backend$
See theHttpClientFs2Backend companion class

Attributes

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

Members list

Concise view

Type members

Types

type Fs2EncodingHandler[F[_]] = EncodingHandler[Stream[F, Byte]]

Value members

Concrete methods

def apply[F[_] : Async](dispatcher: Dispatcher[F], options: SttpBackendOptions, customizeRequest: HttpRequest => HttpRequest, customEncodingHandler: Fs2EncodingHandler[F]): F[SttpBackend[F, Fs2Streams[F] & WebSockets]]
def resource[F[_] : Async](options: SttpBackendOptions, customizeRequest: HttpRequest => HttpRequest, customEncodingHandler: Fs2EncodingHandler[F]): Resource[F, SttpBackend[F, Fs2Streams[F] & WebSockets]]
def resourceUsingClient[F[_] : Async](client: HttpClient, customizeRequest: HttpRequest => HttpRequest, customEncodingHandler: Fs2EncodingHandler[F]): Resource[F, SttpBackend[F, Fs2Streams[F] & WebSockets]]
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, Byte] streaming.

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

See SttpBackendStub for details on how to configure stub responses.

Attributes

def usingClient[F[_] : Async](client: HttpClient, dispatcher: Dispatcher[F], customizeRequest: HttpRequest => HttpRequest, customEncodingHandler: Fs2EncodingHandler[F]): SttpBackend[F, Fs2Streams[F] & WebSockets]