WebSocketBackendStub

sttp.client4.testing.WebSocketBackendStub$
See theWebSocketBackendStub 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[F[_]](monad: MonadError[F]): WebSocketBackendStub[F]

Create a stub backend using the given response monad (which determines the effect type for responses).

Create a stub backend using the given response monad (which determines the effect type for responses).

Attributes

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

Create a stub of an asynchronous backend (which uses the Scala's built-in Future as the effect type).

Create a stub of an asynchronous backend (which uses the Scala's built-in Future as the effect type).

Attributes

Create a stub of a synchronous backend (which doesn't use an effect type)

Create a stub of a synchronous backend (which doesn't use an effect type)

Attributes

Create a stub backend which delegates send requests to the given fallback backend, if the request doesn't match any of the specified predicates.

Create a stub backend which delegates send requests to the given fallback backend, if the request doesn't match any of the specified predicates.

Attributes