http-type 3.68.0

A library providing essential types for HTTP, including request bodies, response headers, and other core HTTP abstractions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::*;

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