http-type 18.2.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
use crate::*;

/// Implementation block for `Status`.
///
/// Provides convenience methods for checking the status variant.
impl Status {
    /// Returns `true` if the status is `Continue`.
    ///
    /// # Returns
    ///
    /// - `bool` - `true` if the status is `Continue`, `false` otherwise.
    #[inline(always)]
    pub fn is_continue(&self) -> bool {
        matches!(self, Status::Continue)
    }

    /// Returns `true` if the status is `Reject`.
    ///
    /// # Returns
    ///
    /// - `bool` - `true` if the status is `Reject`, `false` otherwise.
    #[inline(always)]
    pub fn is_reject(&self) -> bool {
        matches!(self, Status::Reject)
    }
}