http-request 22.10.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
use super::*;

/// Parameters describing one asynchronous HTTP/2 client exchange target.
pub(crate) struct H2ExchangeTarget<'a> {
    /// Parsed URL components for the current hop.
    pub(crate) url_obj: &'a HttpUrlComponents,
    /// Validated HTTP method token.
    pub(crate) method_token: &'a str,
    /// Whether the request method is `HEAD`.
    pub(crate) is_head: bool,
    /// Target hostname or IP literal.
    pub(crate) host: &'a str,
    /// Effective TCP port.
    pub(crate) port: u16,
    /// Whether the target scheme is HTTPS.
    pub(crate) is_https: bool,
    /// Pool key identifying the multiplexed HTTP/2 connection.
    pub(crate) pool_key: PoolKey,
}