http_constant/constant/
protocol.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// A constant representing the "HTTP" protocol.
pub static HTTP: &str = "HTTP";

/// A constant representing the "HTTPS" protocol.
pub static HTTPS: &str = "HTTPS";

/// The default HTTP version `HTTP/1.1` used in requests and responses.
pub static HTTP_VERSION_1_1: &str = "HTTP/1.1";

/// The default HTTP version `HTTP/2` used in requests and responses.
pub static HTTP_VERSION_2: &str = "HTTP/2";

/// Unknown HTTP version
pub static UNKNOWN_HTTP_VERSION: &str = "";