OkHttpFutureBackend

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(options: SttpBackendOptions, customEncodingHandler: EncodingHandler, webSocketBufferCapacity: Option[Int])(implicit ec: ExecutionContext): SttpBackend[Future, WebSockets]
def stub(implicit ec: ExecutionContext): SttpBackendStub[Future, WebSockets]

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

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

See SttpBackendStub for details on how to configure stub responses.

def usingClient(client: OkHttpClient, customEncodingHandler: EncodingHandler, webSocketBufferCapacity: Option[Int])(implicit ec: ExecutionContext): SttpBackend[Future, WebSockets]