http_type/upgrade_type/enum.rs
1/// Represents different upgrade types.
2#[derive(Debug, Clone, PartialEq, Eq)]
3pub enum UpgradeType {
4 /// Represents an upgrade to the WebSocket protocol.
5 WebSocket,
6 /// Represents an upgrade to HTTP/2 cleartext (h2c).
7 H2c,
8 /// Represents a TLS upgrade, which is rare and experimental. It includes the specific TLS protocol string.
9 Tls(String),
10 /// Represents other custom or unknown upgrade protocols, including the protocol string.
11 Unknown(String),
12}