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

/// A marker type representing HTTP protocol variants.
///
/// This struct serves as a namespace for protocol-related utility functions,
/// providing methods to identify HTTP and HTTPS protocols and retrieve
/// their default port numbers.
#[derive(Clone, Copy, Debug, Default, Deserialize, Eq, New, PartialEq, Serialize)]
pub struct Protocol;