Skip to main content

create_origin_bound_client_with_timeouts

Function create_origin_bound_client_with_timeouts 

Source
pub fn create_origin_bound_client_with_timeouts(
    connect_timeout: Duration,
    request_timeout: Duration,
) -> Client
Expand description

Create an origin-bound HTTP client with custom connect and request timeouts.

Credentials never leave the configured origin: same-origin redirects are followed while cross-origin targets stop (see same_origin_redirect_policy). The fallback path keeps the same policy — a timeout misconfiguration must not silently re-enable following.