DefaultFutureBackend

sttp.client4.DefaultFutureBackend

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply()(implicit ec: ExecutionContext): WebSocketBackend[Future]

Creates a default websocket-capable backend which uses Future to represent side effects, with the given options. Currently based on FetchBackend.

Creates a default websocket-capable backend which uses Future to represent side effects, with the given options. Currently based on FetchBackend.

Attributes

def stub(implicit ec: ExecutionContext): WebSocketBackendStub[Future]

Create a stub backend for testing, which uses Future to represent side effects, and doesn't support streaming.

Create a stub backend for testing, which uses Future to represent side effects, and doesn't support streaming.

See WebSocketBackendStub for details on how to configure stub responses.

Attributes