HttpClientCatsBackend

sttp.client4.httpclient.cats.HttpClientCatsBackend
See theHttpClientCatsBackend 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: HttpRequest => HttpRequest, customEncodingHandler: EncodingHandler[InputStream]): F[WebSocketBackend[F]]
def resource[F[_] : Async](options: BackendOptions, customizeRequest: HttpRequest => HttpRequest, customEncodingHandler: EncodingHandler[InputStream]): Resource[F, WebSocketBackend[F]]
def resourceUsingClient[F[_] : Async](client: HttpClient, customizeRequest: HttpRequest => HttpRequest, customEncodingHandler: EncodingHandler[InputStream]): Resource[F, WebSocketBackend[F]]
def stub[F[_] : Async]: WebSocketBackendStub[F]

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]): WebSocketBackend[F]