hyperlane-core 22.10.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
15
16
17
/// Reserved lifecycle metadata for the original wire request target.
pub(crate) const REQUEST_TARGET_ATTRIBUTE: &str = "hyperlane.request.target";

/// Static map key matching `Attribute::Internal(InternalAttribute::TaskPanicData).to_string()`.
pub(crate) const INTERNAL_TASK_PANIC_KEY: &str = "Internal(TaskPanicData)";

/// Static map key matching `Attribute::Internal(InternalAttribute::RequestErrorData).to_string()`.
pub(crate) const INTERNAL_REQUEST_ERROR_KEY: &str = "Internal(RequestErrorData)";

/// Prefix emitted by `Attribute::External` debug formatting.
pub(crate) const EXTERNAL_ATTR_PREFIX: &[u8] = b"External(\"";

/// Suffix emitted by `Attribute::External` debug formatting.
pub(crate) const EXTERNAL_ATTR_SUFFIX: &[u8] = b"\")";

/// Maximum unescaped external attribute key length formatted on the stack.
pub(crate) const EXTERNAL_ATTR_STACK_LIMIT: usize = 110;