HttpClientCatsBackend

sttp.client3.httpclient.cats.HttpClientCatsBackend$
See theHttpClientCatsBackend 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[_] : Async](dispatcher: Dispatcher[F], options: SttpBackendOptions, customizeRequest: HttpRequest => HttpRequest, customEncodingHandler: EncodingHandler[InputStream]): F[SttpBackend[F, WebSockets]]
def resource[F[_] : Async](options: SttpBackendOptions, customizeRequest: HttpRequest => HttpRequest, customEncodingHandler: EncodingHandler[InputStream]): Resource[F, SttpBackend[F, WebSockets]]
def resourceUsingClient[F[_] : Async](client: HttpClient, customizeRequest: HttpRequest => HttpRequest, customEncodingHandler: EncodingHandler[InputStream]): Resource[F, SttpBackend[F, WebSockets]]
def stub[F[_] : Async]: SttpBackendStub[F, NoStreams]

Create a stub backend for testing, which uses the F response wrapper.

Create a stub backend for testing, which uses the F response wrapper.

See SttpBackendStub for details on how to configure stub responses.

Attributes

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