OkHttpSyncBackend

sttp.client3.okhttp.OkHttpSyncBackend$
See theOkHttpSyncBackend 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(options: SttpBackendOptions, customEncodingHandler: EncodingHandler, webSocketBufferCapacity: Option[Int]): SttpBackend[Identity, WebSockets]
def stub: SttpBackendStub[Identity, WebSockets]

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: OkHttpClient, customEncodingHandler: EncodingHandler, webSocketBufferCapacity: Option[Int]): SttpBackend[Identity, WebSockets]