hyperlane-core 22.1.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
use super::*;

/// A response head that has been parsed and is ready to be framed.
#[derive(Clone, Debug, DisplayDebug)]
pub(crate) struct FramedHead {
    /// The response status code.
    pub(crate) status_code: usize,
    /// The protocol headers to send as the first frame of the stream.
    pub(crate) headers: ProtocolHeaders,
}