Scoop API

scoop:scoop.http.client:0.1.0

HttpProxyEndpoint

class HttpProxyEndpoint

source · line 71
public
public class HttpProxyEndpoint public constructor(
    /**
     * The validated http or https proxy authority.
     */
    public val url: Url,
    /**
     * TLS settings for an HTTPS proxy connection, independent of origin TLS.
     */
    public val tls: HttpClientTlsConfig = httpClientTlsConfig(),
    /**
     * Optional preconstructed proxy credentials.
     */
    public val authorization: HttpCredentials? = None,
    /**
     * Proxy authentication providers and retry policy, independent of origin authentication.
     */
    public val authentication: HttpAuthenticationOptions = httpAuthenticationOptions()
)

An HTTP/HTTPS proxy authority with independent TLS and authentication configuration. URL userinfo, query, and fragment are rejected.

property authorization

source · line 83
public
public val authorization: HttpCredentials? = None

get: public read-only

Optional preconstructed proxy credentials.

property url

source · line 75
public
public val url: Url

get: public read-only

The validated http or https proxy authority.

property authentication

source · line 87
public
public val authentication: HttpAuthenticationOptions = httpAuthenticationOptions()

get: public read-only

Proxy authentication providers and retry policy, independent of origin authentication.

property tls

source · line 79
public
public val tls: HttpClientTlsConfig = httpClientTlsConfig()

get: public read-only

TLS settings for an HTTPS proxy connection, independent of origin TLS.

constructor constructor

source · line 71
public
constructor(public val url: Url, public val tls: HttpClientTlsConfig = httpClientTlsConfig(), public val authorization: HttpCredentials? = None, public val authentication: HttpAuthenticationOptions = httpAuthenticationOptions())