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.
/// Supported HTTP content types.
////// Defines common content types for HTTP communication.
#[derive(Debug, Clone, PartialEq, Eq, Default)]pubenumContentType{/// `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,}