http-type 4.31.0

A library providing essential types for HTTP, including request bodies, response headers, and other core HTTP abstractions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Represents different upgrade types.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum UpgradeType {
    /// WebSocket protocol upgrade
    WebSocket,
    /// HTTP/2 cleartext upgrade (h2c)
    H2c,
    /// TLS upgrade (rare, experimental)
    Tls(String),
    /// Other custom or unknown upgrade protocols
    Unknown(String),
}