http-type 18.4.0

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

/// Supported HTTP content types.
///
/// Defines common content types for HTTP communication.
#[derive(Clone, Copy, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub enum ContentType {
    /// `application/json` content type.
    ///
    /// For JSON data format.
    ApplicationJson,
    /// `application/xml` content type.
    ///
    /// For XML data format.
    ApplicationXml,
    /// `text/plain` content type.
    ///
    /// For plain text data.
    TextPlain,
    /// `text/html` content type.
    ///
    /// For HTML documents.
    TextHtml,
    /// `application/x-www-form-urlencoded` content type.
    ///
    /// For form data submission.
    FormUrlEncoded,
    /// Unknown content type.
    ///
    /// For unrecognized content types.
    #[default]
    Unknown,
}