hyperlane-core 22.11.0

A lightweight, high-performance, and cross-platform Rust HTTP server library built on Tokio. It simplifies modern web service development by providing built-in support for middleware, WebSocket, Server-Sent Events (SSE), and raw TCP communication. With a unified and ergonomic API across Windows, Linux, and MacOS, it enables developers to build robust, scalable, and event-driven network applications with minimal overhead and maximum flexibility.
Documentation
1
2
3
4
5
6
7
8
9
use super::*;

thread_local! {
    /// Worker-local pool of reusable byte buffers for HTTP/3 request reading and frame encoding.
    pub(crate) static H3_BUFFER_POOL: RefCell<Vec<Vec<u8>>> = const { RefCell::new(Vec::new()) };
    /// Worker-local pool of boxed `Stream` wrappers paired with their reusable HTTP/3 state handles.
    pub(crate) static H3_STREAM_POOL: RefCell<Vec<PooledH3Stream>> =
        const { RefCell::new(Vec::new()) };
}