Scoop API

scoop:scoop.http.client:0.1.0

HttpRedirectOptions

class HttpRedirectOptions

source · line 9
public
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

property enabled

source · line 13
public
public val enabled: Boolean = true

get: public read-only

Whether eligible redirect responses are followed.

property allowHttpsToHttp

source · line 21
public
public val allowHttpsToHttp: Boolean = false

get: public read-only

Whether a secure request may follow a redirect to unencrypted HTTP.

property maxRedirects

source · line 17
public
public val maxRedirects: Long = 10L

get: public read-only

The maximum number of redirect hops; must be nonnegative.