class HttpCallOptions
source · line 188public class HttpCallOptions internal constructor(
/**
* Allows response processing while upload continues; requires HTTP/2.
*/
public val duplex: Boolean = false,
/**
* Requests 100-continue gating for a nonempty upload.
*/
public val expectContinue: Boolean = false,
/**
* How long to wait for Continue before proceeding with the upload; must be nonnegative.
*/
public val continueWait: Duration = Duration.seconds(1L),
/**
* Overrides the client's response content-decoding policy. None inherits the client default.
*/
public val decoding: HttpDecodingOptions? = None,
/**
* Overrides the client's call and phase timeouts, including body lifetime. None inherits the
* client default.
*/
public val timeouts: HttpTimeoutOptions? = None,
/**
* Suspend callback for informational response heads before the final response.
*/
public val onInformational: suspend (HttpResponseHead) -> Unit = suspend { _ -> },
/**
* Overrides the client's redirect count, enablement, and HTTPS downgrade policy. None inherits
* the client default.
*/
public val redirects: HttpRedirectOptions? = None,
/**
* Overrides the client's retry conditions, method eligibility, and backoff policy. None
* inherits the client default.
*/
public val retries: HttpRetryOptions? = None,
/**
* Overrides the client's origin authentication providers and attempt limit. None inherits the
* client default.
*/
public val authentication: HttpAuthenticationOptions? = None,
/**
* Overrides the client's per-request proxy selection, direct by default. None inherits the
* client default.
*/
public val proxy: HttpProxySelector? = None,
/**
* Whether this call uses the configured cookie jar.
*/
public val useCookies: Boolean = true,
/**
* Explicit site/navigation context for SameSite-aware cookie selection.
*/
public val cookieContext: HttpCookieContext? = None,
/**
* The per-call cache policy.
*/
public val cacheMode: HttpCacheMode = HttpCacheMode.Default,
/**
* Observes this call and all its attempts in addition to the client observer. The request
* observer runs first; the same observer object configured twice runs only once.
*/
public val observer: HttpObserver? = None
)
Per-call policy overrides and request-lifetime behavior. None inherits client defaults; duplex requires HTTP/2.
Extensions
public fun HttpCallOptions.copy(configure: HttpCallOptionsBuilder.() -> Unit = {}): HttpCallOptions· scoop:scoop.http.client:0.1.0
property cacheMode
source · line 245public val cacheMode: HttpCacheMode = HttpCacheMode.Default
get: public read-only
The per-call cache policy.
property proxy
source · line 233public val proxy: HttpProxySelector? = None
get: public read-only
Overrides the client's per-request proxy selection, direct by default. None inherits the client default.
property retries
source · line 223public val retries: HttpRetryOptions? = None
get: public read-only
Overrides the client's retry conditions, method eligibility, and backoff policy. None inherits the client default.
property authentication
source · line 228public val authentication: HttpAuthenticationOptions? = None
get: public read-only
Overrides the client's origin authentication providers and attempt limit. None inherits the client default.
property cookieContext
source · line 241public val cookieContext: HttpCookieContext? = None
get: public read-only
Explicit site/navigation context for SameSite-aware cookie selection.
property redirects
source · line 218public val redirects: HttpRedirectOptions? = None
get: public read-only
Overrides the client's redirect count, enablement, and HTTPS downgrade policy. None inherits the client default.
property decoding
source · line 204public val decoding: HttpDecodingOptions? = None
get: public read-only
Overrides the client's response content-decoding policy. None inherits the client default.
property expectContinue
source · line 196public val expectContinue: Boolean = false
get: public read-only
Requests 100-continue gating for a nonempty upload.
property duplex
source · line 192public val duplex: Boolean = false
get: public read-only
Allows response processing while upload continues; requires HTTP/2.
property onInformational
source · line 213public val onInformational: suspend (HttpResponseHead) -> Unit = suspend { _ -> }
get: public read-only
Suspend callback for informational response heads before the final response.
property continueWait
source · line 200public val continueWait: Duration = Duration.seconds(1L)
get: public read-only
How long to wait for Continue before proceeding with the upload; must be nonnegative.
property timeouts
source · line 209public val timeouts: HttpTimeoutOptions? = None
get: public read-only
Overrides the client's call and phase timeouts, including body lifetime. None inherits the client default.
property observer
source · line 250public val observer: HttpObserver? = None
get: public read-only
Observes this call and all its attempts in addition to the client observer. The request observer runs first; the same observer object configured twice runs only once.
property useCookies
source · line 237public val useCookies: Boolean = true
get: public read-only
Whether this call uses the configured cookie jar.