http_type/protocol/enum.rs
1use crate::*;
2
3/// Represents HTTP-related protocols.
4///
5/// This enum defines the different protocols that can be used in HTTP communication.
6#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
7pub enum Protocol {
8 /// Represents the HTTP protocol.
9 ///
10 /// This is the standard protocol for unencrypted communication over the web.
11 Http,
12 /// Represents the HTTPS protocol.
13 ///
14 /// This is the secure version of HTTP, using encryption for communication.
15 Https,
16 /// Represents an unknown or custom protocol.
17 ///
18 /// This variant is used for protocols that are not explicitly defined as HTTP or HTTPS,
19 /// or when the protocol string is not recognized.
20 Unknown(String),
21}