http_type/protocol/
enum.rs

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