http-type 17.5.0

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
1
2
3
4
5
6
7
8
9
10
use crate::*;

/// A thread-safe reference-counted `TcpStream`.
pub type ArcStream = Arc<TcpStream>;

/// A socket host represented by an IP address.
pub type SocketHost = IpAddr;

/// A socket port number.
pub type SocketPort = u16;