1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! HTTP connection manager
//!
//! Provides connection pool reuse, Keep-Alive management, LRU eviction strategy, and redirect following.
//!
//! # Example
//!
//! ```rust,no_run
//! use aria2_core::http::connection::{HttpConnectionManager, HttpConfig};
//! use std::time::Duration;
//!
//! #[tokio::main]
//! async fn main() {
//! let config = HttpConfig {
//! max_connections: 10,
//! connect_timeout: Duration::from_secs(30),
//! read_timeout: Duration::from_secs(60),
//! write_timeout: Duration::from_secs(60),
//! idle_timeout: Duration::from_secs(300),
//! max_idle_per_host: 8,
//! };
//!
//! let manager = HttpConnectionManager::with_shared_cookie_storage(&config);
//! // Use the connection manager with process-wide CookieStorage...
//! }
//! ```
// Re-export all public types to preserve the public API
pub use ;
pub use ConnectionContext;
pub use ;
pub use HttpConnectionManager;
pub use ;
pub use ;