hyperlane-core 22.7.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
10
11
12
13
14
/// The largest buffer the pool keeps for reuse.
///
/// A buffer that grew past this size is dropped rather than pooled, so one
/// large response does not make every worker hold a large buffer.
pub(crate) const MAX_POOLED_BUFFER_CAPACITY: usize = 64 * 1024;

/// The number of contexts retained per worker thread for reuse.
pub(crate) const MAX_POOLED_CONTEXTS: usize = 64;

/// The number of recycled protocol header entries retained per worker thread.
pub(crate) const MAX_POOLED_PROTOCOL_HEADERS: usize = 256;

/// The largest string capacity retained in protocol header or target pools.
pub(crate) const MAX_POOLED_STRING_CAPACITY: usize = 4 * 1024;