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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::*;

/// Represents a decoded WebSocket frame.
#[derive(Debug, Clone, Getter, DisplayDebug, PartialEq, Eq)]
pub struct WebSocketFrame {
    /// FIN flag indicating if this is the final frame.
    pub(super) fin: bool,
    /// Opcode indicating the frame type (text, binary, etc.).
    pub(super) opcode: WebSocketOpcode,
    /// Mask flag indicating if the payload is masked.
    pub(super) mask: bool,
    /// The payload data of the frame.
    pub(super) payload_data: Vec<u8>,
}