http-type 18.3.1

A comprehensive Rust type library for HTTP operations and concurrent programming. Provides core HTTP types (Request/Response with builder patterns, Method, HttpStatus, HttpVersion, ContentType, FileExtension with MIME mapping, Cookie parsing/building, HttpUrl parsing, WebSocket frame/opcode, protocol upgrade types, stream/task management, panic handling), thread-safe concurrent wrappers (ArcMutex, ArcRwLock, BoxRwLock, RcRwLock), dynamic dispatch types (BoxAny, RcAny, ArcAny with Send/Sync variants), high-performance hash collections (HashMapXxHash3_64, HashSetXxHash3_64), and static lifetime utilities (BoxLeak, Lifetime trait).
Documentation
use crate::*;

/// Represents the HTTP version used in the request or response.
///
/// This enum defines the various HTTP protocol versions supported,
/// including HTTP/0.9, HTTP/1.0, HTTP/1.1, HTTP/2, and HTTP/3.
/// It also includes an `Unknown` variant for unrecognized versions.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub enum HttpVersion {
    /// HTTP version 0.9
    Http0_9,
    /// HTTP version 1.0
    Http1_0,
    /// HTTP version 1.1
    #[default]
    Http1_1,
    /// HTTP version 2.0
    Http2,
    /// HTTP version 3.0
    Http3,
    /// Unknown version
    Unknown(String),
}