http-type 18.4.1

A comprehensive Rust type library for HTTP operations and concurrent programming. Provides core HTTP types (Request/Response with builder patterns, Method, HttpStatus, HttpVersion, ContentType, FileExtension with MIME mapping, Cookie parsing/building, HttpUrl parsing, WebSocket frame/opcode, protocol upgrade types, stream/task management, panic handling), thread-safe concurrent wrappers (ArcMutex, ArcRwLock, BoxRwLock, RcRwLock), dynamic dispatch types (BoxAny, RcAny, ArcAny with Send/Sync variants), high-performance hash collections (HashMapXxHash3_64, HashSetXxHash3_64), and static lifetime utilities (BoxLeak, Lifetime trait).
Documentation
/// Trait for types that can be converted to a `'static` reference.
///
/// This trait provides a way to obtain a `'static` reference or mutable reference from
/// a reference to `Self`, enabling safe lifetime extension for
/// certain use cases where the object is known to live for the entire
/// program duration.
pub trait Lifetime {
    /// Converts a reference to `Self` into a `'static` reference.
    ///
    /// # Returns
    ///
    /// - `&'static Self`: A reference to the instance with a `'static` lifetime.
    ///
    /// # Safety
    ///
    /// - The address is guaranteed to be a valid `Self` instance
    ///   that was previously converted from a reference and is managed by the runtime.
    unsafe fn leak(&self) -> &'static Self;

    /// Converts a reference to `Self` into a `'static` mutable reference.
    ///
    /// # Returns
    ///
    /// - `&'static mut Self`: A mutable reference to the instance with a `'static` lifetime.
    ///
    /// # Safety
    ///
    /// - The address is guaranteed to be a valid `Self` instance
    ///   that was previously converted from a reference and is managed by the runtime.
    unsafe fn leak_mut(&self) -> &'static mut Self;
}