WebSocketStreamBackendStub

sttp.client4.testing.WebSocketStreamBackendStub
See theWebSocketStreamBackendStub companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[F[_], S](monad: MonadError[F]): WebSocketStreamBackendStub[F, S]

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[S](implicit ec: ExecutionContext): WebSocketStreamBackendStub[Future, S]

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

def withFallback[F[_], S](fallback: WebSocketStreamBackend[F, S]): WebSocketStreamBackendStub[F, S]

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