FetchBackend

sttp.client3.FetchBackend$
See theFetchBackend companion class
object FetchBackend

Attributes

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

Members list

Value members

Concrete methods

def apply(fetchOptions: FetchOptions, customizeRequest: Request => Request)(implicit ec: ExecutionContext): SttpBackend[Future, WebSockets]
def stub(implicit ec: ExecutionContext): SttpBackendStub[Future, 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.

Attributes