http-type 22.8.2

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 super::*;

/// Represents a parsed HTTP response.
///
/// The fields are crate-internal (ยง17.18): a consumer reaches them through
/// the generated `get_*` and `set_*` accessors.
#[derive(Clone, Data, Debug, Deserialize, DisplayDebug, Eq, PartialEq, Serialize)]
pub struct Response {
    /// The HTTP version used in the response.
    pub(crate) version: ResponseVersion,
    /// The HTTP status code.
    #[get(type(copy))]
    pub(crate) status_code: ResponseStatusCode,
    /// The reason phrase associated with the status code.
    #[set(skip)]
    pub(crate) reason_phrase: ResponseReasonPhrase,
    /// The response headers as key-value pairs.
    pub(crate) headers: ResponseHeaders,
    /// The binary body content of the response.
    #[set(skip)]
    pub(crate) body: ResponseBody,
}