HttpClientSyncBackend

Companion
class
class Object
trait Matchable
class Any

Type members

Types

Value members

Concrete methods

def apply(options: SttpBackendOptions, customizeRequest: HttpRequest => HttpRequest, customEncodingHandler: SyncEncodingHandler): SttpBackend[Identity, Any]
def stub: SttpBackendStub[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.

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