http-type 4.55.3

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

/// An alias for `Vec<u8>`, representing the binary body of the HTTP response.
pub type ResponseBody = Vec<u8>;
/// An alias for `String`, representing the body of the HTTP response as a UTF-8 string.
pub type ResponseBodyString = String;
/// An alias for `String`, representing the key type used in HTTP response headers.
pub type ResponseHeadersKey = String;
/// An alias for `String`, representing a single value string for an HTTP response header.
pub type ResponseHeadersValueItem = String;
/// An alias for `Option<ResponseHeadersValueItem>`, representing an optional value string for an HTTP response header.
pub type OptionResponseHeadersValueItem = Option<ResponseHeadersValueItem>;
/// An alias for `VecDeque<ResponseHeadersValueItem>`, representing a collection of values for a single HTTP response header.
pub type ResponseHeadersValue = VecDeque<ResponseHeadersValueItem>;
/// An alias for `HashMapXxHash3_64<ResponseHeadersKey, ResponseHeadersValue>`, representing a map of HTTP response headers.
pub type ResponseHeaders = HashMapXxHash3_64<ResponseHeadersKey, ResponseHeadersValue>;
/// An alias for `HttpVersion`, representing the HTTP version of the response.
pub type ResponseVersion = HttpVersion;
/// An alias for `usize`, representing the numeric status code of the HTTP response.
pub type ResponseStatusCode = usize;
/// An alias for `String`, representing the reason phrase associated with the HTTP status code.
pub type ResponseReasonPhrase = String;
/// An alias for `Result<(), ResponseError>`, representing the result type returned after writing an HTTP response.
pub type ResponseResult = Result<(), ResponseError>;
/// An alias for `Vec<u8>`, representing the full serialized binary content of the HTTP response.
pub type ResponseData = Vec<u8>;
/// An alias for `String`, representing the full serialized content of the HTTP response as a UTF-8 string.
pub type ResponseDataString = String;
/// An alias for `RwLockReadGuard<'a, Response>`, representing a read guard to a shared `Response` value protected by `RwLock`.
pub type RwLockReadGuardResponse<'a> = RwLockReadGuard<'a, Response>;
/// An alias for `RwLockWriteGuard<'a, Response>`, representing a write guard to a shared `Response` value protected by `RwLock`.
pub type RwLockWriteGuardResponse<'a> = RwLockWriteGuard<'a, Response>;
/// An alias for `Option<ResponseHeadersValue>`, representing an optional collection of values for a response header.
pub type OptionResponseHeadersValue = Option<ResponseHeadersValue>;