http-type 23.0.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
1
2
3
4
5
6
7
8
9
10
11
use super::*;

/// An alias for `HashMapXxHash3_64<String, VecDeque<String>>`, representing all query parameters parsed from the request URL.
pub type RequestQuerys = HashMapXxHash3_64<String, VecDeque<String>>;

/// An alias for `HashMapXxHash3_64<String, VecDeque<String>>`, representing all headers sent with the HTTP request.
pub type RequestHeaders = HashMapXxHash3_64<String, VecDeque<String>>;

/// Parsed components of an HTTP request line: method, raw target, optional `?`/`#` offsets, and version.
pub(super) type ParsedHttpFirstLine<'a> =
    (Method, &'a str, Option<usize>, Option<usize>, HttpVersion);