http-request 8.91.109

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 crate::*;

/// Asynchronous proxy tunnel stream wrapper.
///
/// Provides unified interface for different proxy implementations.
pub struct ProxyTunnelStream {
    /// The underlying asynchronous read/write stream.
    pub(super) inner: BoxAsyncReadWrite,
    /// Pre-read data from the stream.
    pub(super) pre_read_data: Vec<u8>,
}

/// Synchronous proxy tunnel stream wrapper.
///
/// Provides unified interface for different proxy implementations.
pub struct SyncProxyTunnelStream {
    /// The underlying synchronous read/write stream.
    pub(super) inner: BoxReadWrite,
    /// Pre-read data from the stream.
    pub(super) pre_read_data: Vec<u8>,
}