product-os-request 0.0.55

Product OS : Request provides a fully featured HTTP request library combining elements of reqwest and hyper for async requests with a series of helper methods to allow for easier usage depending upon your needs for one-time or repeat usage.
Documentation
//! Protocol and proxy configuration types
//!
//! This module provides types for configuring proxy connections.

use alloc::string::String;

/// Proxy protocol specification
///
/// Defines the protocol to use for proxy connections.
#[cfg(any(feature = "request", feature = "request_std"))]
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum Protocol {
    /// SOCKS5 proxy protocol
    SOCKS5,
    /// HTTP proxy protocol
    HTTP,
    /// HTTPS proxy protocol
    HTTPS,
    /// All protocols
    ALL,
}

/// Proxy configuration
///
/// Specifies the protocol and address for a proxy server.
#[cfg(any(feature = "request", feature = "request_std"))]
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct Proxy {
    /// The protocol to use for the proxy connection
    pub protocol: Protocol,
    /// The address of the proxy server (e.g., "proxy.example.com:8080")
    pub address: String,
}