Skip to main content

High-performance HTTP client using hyper directly.

This module provides a custom HTTP client that bypasses reqwest’s abstraction layers for maximum performance, particularly for bulk insert operations.

Structs

Connection settings for a HyperClient.
High-performance HTTP client using hyper with connection pooling.
A response as received, before its status is interpreted.
The headers sent with a request besides its content type.

Constants

pub const CONNECTION_TIME_TO_LIVE: Duration;

How long after its opening a connection may be reused: one minute.

pub const DEFAULT_CONNECTION_REQUEST_TIMEOUT: Duration;

How long a request waits for a free connection: 5 minutes.

Functions

The Authorization header to send: Bearer <token> when an OAuth token is set, otherwise Basic with the credentials when the username or the password is set, and no header at all when neither is.