Skip to main content

create_client_with_timeout

Function create_client_with_timeout 

Source
pub fn create_client_with_timeout(timeout: Duration) -> Client
Expand description

Create an HTTP client with a custom request timeout.

The connect phase keeps the installed default so a stalled TCP/TLS handshake never inherits the (usually much longer) request budget.