hyperlane-core 22.6.10

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
/// Initial byte size of pooled TLS incoming/outgoing record buffers (fits one max 16 KiB TLS record + overhead).
pub(crate) const TLS_RECORD_BUFFER_SIZE: usize = 18 * 1024;

/// Maximum plaintext bytes encrypted into a single TLS record.
pub(crate) const TLS_MAX_PLAINTEXT_CHUNK: usize = 16 * 1024;

/// Maximum incoming ciphertext buffer growth allowed during handshake or record framing.
pub(crate) const TLS_MAX_INCOMING_BUFFER: usize = 64 * 1024;

/// Maximum number of reusable TLS record buffers kept per worker thread.
pub(crate) const MAX_POOLED_TLS_BUFFERS: usize = 64;

/// Failure reported if the TCP socket accepts no bytes during TLS transmission.
pub(crate) const TLS_TRANSMIT_WRITE_ZERO: &str = "tcp write zero during tls transmit";