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

/// A parsed and validated protocol response head ready to emit directly.
#[derive(Debug)]
pub(crate) struct ParsedProtocolHead {
    /// The HTTP/2 or HTTP/3 response head with hop-by-hop headers removed.
    pub(crate) response: ProtocolResponse<()>,
    /// The validated content length announced by the head, if any.
    pub(crate) announced_len: Option<usize>,
    /// Whether body bytes must be suppressed for this response.
    pub(crate) suppress_body: bool,
}