HttpURLConnection

data class HttpURLConnection(val allowCrossProtocolRedirects: Boolean = false) : NetworkEngine

Android built-in HTTP network engine. It is always available but doesn't support HTTP/2.

Constructors

Link copied to clipboard
constructor(allowCrossProtocolRedirects: Boolean = false)

Types

Link copied to clipboard

A HttpURLConnection with default values.

Properties

Link copied to clipboard

Whether to allow cross-protocol redirects, e.g., from HTTP to HTTPS. Defaults to false for security reasons.