http_constant/constant/
protocol.rs

1/// A constant representing the "HTTP" protocol.
2pub static HTTP: &str = "HTTP";
3
4/// A constant representing the "HTTPS" protocol.
5pub static HTTPS: &str = "HTTPS";
6
7/// The default HTTP version `HTTP/1.1` used in requests and responses.
8pub static HTTP_VERSION_1_1: &str = "HTTP/1.1";
9
10/// The default HTTP version `HTTP/2` used in requests and responses.
11pub static HTTP_VERSION_2: &str = "HTTP/2";
12
13/// Unknown HTTP version
14pub static UNKNOWN_HTTP_VERSION: &str = "";