Create a stub backend using the given response monad (which determines how requests are wrapped), and any stream type.
Create a stub backend for testing, which uses the same response wrappers and supports the same stream type as the given "real" backend.
Create a stub backend for testing, which uses the same response wrappers and supports the same stream type as the given "real" backend.
This is a work-around for the problem described here: https://stackoverflow.com/questions/46642623/cannot-infer-contravariant-nothing-type-parameter.
Create a stub asynchronous backend (which wraps results in Scala's
built-in Future
), without streaming support.
Create a stub synchronous backend (which doesn't wrap results in any container), without streaming support.
Create a stub backend which delegates send requests to the given fallback backend, if the request doesn't match any of the specified predicates.