http-type 5.5.1

A comprehensive Rust library providing essential types for HTTP operations. Includes core HTTP abstractions (request/response, methods, status codes, versions), content types, cookies, WebSocket support, and thread-safe concurrent types (ArcMutex, ArcRwLock). Also provides convenient Option-wrapped primitive types for flexible HTTP handling.
Documentation
use crate::*;

/// WebSocket frame opcode types
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(u8)]
pub enum WebSocketOpcode {
    /// Represents a continuation frame (0x0).
    Continuation = 0x0,
    /// Represents a text frame (0x1).
    Text = 0x1,
    /// Represents a binary frame (0x2).
    Binary = 0x2,
    /// Represents a connection close frame (0x8).
    Close = 0x8,
    /// Represents a ping frame (0x9).
    Ping = 0x9,
    /// Represents a pong frame (0xA).
    Pong = 0xA,
    /// Represents a reserved opcode for future use, including the specific byte value.
    Reserved(u8),
}