FetchBackend

object FetchBackend
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(fetchOptions: FetchOptions, customizeRequest: Request => Request)(ec: ExecutionContext): SttpBackend[[T] =>> Future[T], WebSockets]
def stub(ec: ExecutionContext): SttpBackendStub[[T] =>> Future[T], Any]

Create a stub backend for testing, which uses the Future response wrapper, and doesn't support streaming.

Create a stub backend for testing, which uses the Future response wrapper, and doesn't support streaming.

See SttpBackendStub for details on how to configure stub responses.