HttpClientSyncBackend

sttp.client3.HttpClientSyncBackend
See theHttpClientSyncBackend companion class

Attributes

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

Members list

Type members

Types

type SyncEncodingHandler = EncodingHandler[InputStream]

Value members

Concrete methods

def apply(options: SttpBackendOptions, customizeRequest: HttpRequest => HttpRequest, customEncodingHandler: SyncEncodingHandler): SttpBackend[Identity, Any]

Create a stub backend for testing, which uses the Identity response wrapper, and doesn't support streaming.

Create a stub backend for testing, which uses the Identity response wrapper, and doesn't support streaming.

See SttpBackendStub for details on how to configure stub responses.

Attributes

def usingClient(client: HttpClient, customizeRequest: HttpRequest => HttpRequest, customEncodingHandler: SyncEncodingHandler): SttpBackend[Identity, Any]