http-type 19.0.0

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

#[test]
fn test_box_leak_new_with_integer() {
    let leaked: &'static mut i32 = box_leak_new(42);
    assert_eq!(*leaked, 42);
    *leaked = 100;
    assert_eq!(*leaked, 100);
}

#[test]
fn test_box_leak_new_with_string() {
    let leaked: &'static mut String = box_leak_new("hello".to_string());
    assert_eq!(*leaked, "hello");
    leaked.push_str(" world");
    assert_eq!(*leaked, "hello world");
}

#[test]
fn test_box_leak_new_with_vec() {
    let leaked: &'static mut Vec<i32> = box_leak_new(vec![1, 2, 3]);
    assert_eq!(*leaked, vec![1, 2, 3]);
    leaked.push(4);
    assert_eq!(*leaked, vec![1, 2, 3, 4]);
}

#[test]
fn test_box_leak_new_static_lifetime() {
    fn assert_static<T: 'static>(_: T) {}
    let leaked: &'static mut i32 = box_leak_new(42);
    assert_static(*leaked);
}