HttpURLConnectionBackend

sttp.client3.HttpURLConnectionBackend
See theHttpURLConnectionBackend companion class

Attributes

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

Members list

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.

Attributes