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
11
12
13
14
use crate::*;

/// Represents different types of errors that can occur when handling HTTP URLs.
///
/// This enum defines various error types specifically related to parsing or
/// otherwise processing HTTP URLs.
#[derive(Clone, Copy, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub enum HttpUrlError {
    /// Indicates that the provided URL is invalid.
    InvalidUrl,
    /// Unknown error
    #[default]
    Unknown,
}