HttpURLConnectionBackend

Companion
class
class Object
trait Matchable
class Any

Type members

Types

type EncodingHandler = PartialFunction[(InputStream, String), InputStream]

Value members

Concrete methods

def apply(options: SttpBackendOptions, customizeConnection: HttpURLConnection => Unit, createURL: String => URL, openConnection: (URL, Option[Proxy]) => URLConnection, customEncodingHandler: EncodingHandler): SttpBackend[Identity, Any]

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

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

See SttpBackendStub for details on how to configure stub responses.