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