http-request 23.3.0

http-request is a lightweight, efficient library for building, sending, and handling HTTP/HTTPS requests in Rust applications. It provides a simple and intuitive API, allowing developers to easily interact with web services, whether they use the "HTTP" or "HTTPS" protocol. The library supports various HTTP methods, custom headers, request bodies, timeout, automatic handling of redirects (including detecting redirect loops), and enhanced response body decoding (both automatic and manual), enabling fast and secure communication. Whether working with secure "HTTPS" connections or standard "HTTP" requests, the library is optimized for performance, minimal resource usage, and easy integration into Rust projects.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

/// One origin bucket inside a striped HTTP/1.1 connection pool.
pub(crate) type H1StripeEntry<T> = (PoolKey, VecDeque<PooledConn<T>>);

/// List of active multiplexed HTTP/2 client senders stored in [`ASYNC_H2_POOL`].
pub(crate) type H2PoolList = Vec<(PoolKey, SendRequest<Bytes>)>;

/// Type alias for a pooled asynchronous HTTP/1.1 connection entry.
#[cfg(test)]
pub(crate) type PooledAsyncConn = PooledConn<AsyncClientTransport>;

/// Type alias for a pooled synchronous HTTP/1.1 connection entry.
#[cfg(test)]
pub(crate) type PooledSyncConn = PooledConn<SyncClientTransport>;