Registry / http-client / hyper-timeout

hyper-timeout

JSON →
library0.5.2rscratesunverified

A connect, read and write timeout aware connector for use with the Hyper HTTP client.

# Cargo.toml [dependencies] hyper-timeout = "0.5.2"
INSTALL
IMPORT
SIG · HYPER-TIMEOUT
H
hyper-timeout
http-clientrustv0.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TimeoutConnector
use hyper_timeout::TimeoutConnector;

Create a timeout-enabled HTTP connector

use hyper_timeout::TimeoutConnector; use hyper::client::HttpConnector; let mut connector = TimeoutConnector::new(HttpConnector::new()); connector.set_connect_timeout(Some(std::time::Duration::from_secs(5)));
Debug
Known issues
gotchaRequires the `tokio` runtime for async operations.
fix
Ensure your application uses a Tokio runtime (e.g., `#[tokio::main]`).
affects: >=0.5.0
Upgrade
Version history
0.5.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
Resources
hyper-timeout — cargo add hyper-timeout · libregistry