SttpBackendStub

Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

case class RawStream[T](s: T)

Value members

Concrete methods

def apply[F[_], P](responseMonad: MonadError[F]): SttpBackendStub[F, P]

Create a stub backend using the given response monad (which determines the effect type for responses), and any capabilities (such as streaming or web socket support).

Create a stub backend using the given response monad (which determines the effect type for responses), and any capabilities (such as streaming or web socket support).

def asynchronousFuture: SttpBackendStub[[T] =>> Future[T], WebSockets]

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

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

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

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

def withFallback[F[_], P0, P1 >: P0](fallback: SttpBackend[F, P0]): SttpBackendStub[F, P1]

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.