class HttpRedirectOptions
source · line 9public
public class HttpRedirectOptions internal constructor(
/**
* Whether eligible redirect responses are followed.
*/
public val enabled: Boolean = true,
/**
* The maximum number of redirect hops; must be nonnegative.
*/
public val maxRedirects: Long = 10L,
/**
* Whether a secure request may follow a redirect to unencrypted HTTP.
*/
public val allowHttpsToHttp: Boolean = false
)
Redirect enablement, maximum hops, and explicit permission for HTTPS-to-HTTP downgrade.
Extensions
public fun HttpRedirectOptions.copy(configure: HttpRedirectOptionsBuilder.() -> Unit = {}): HttpRedirectOptions· scoop:scoop.http.client:0.1.0
property enabled
source · line 13public
public val enabled: Boolean = true
get: public read-only
Whether eligible redirect responses are followed.
property allowHttpsToHttp
source · line 21public
public val allowHttpsToHttp: Boolean = false
get: public read-only
Whether a secure request may follow a redirect to unencrypted HTTP.
property maxRedirects
source · line 17public
public val maxRedirects: Long = 10L
get: public read-only
The maximum number of redirect hops; must be nonnegative.