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.
usecrate::*;/// Represents various errors that can occur during HTTP response processing.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]pubenumResponseError{/// Represents an unknown error with a message.
#[default]
Unknown,/// Represents an error where the stream was not found.
NotFoundStream,/// Represents an error where the connection was closed.
ConnectionClosed,/// Represents a terminated operation or connection.
Terminated,/// Represents a send error with a message string.
Send(String),/// Represents a flush operation error with a message string.
FlushError(String),}