hyperlane 21.2.5

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

pub(crate) struct TestSendRoute;

pub(crate) struct TaskPanicHook {
    pub(crate) response_body: String,
    pub(crate) content_type: String,
}

pub(crate) struct RequestErrorHook {
    pub(crate) response_status_code: ResponseStatusCode,
    pub(crate) response_body: String,
}

pub(crate) struct RequestMiddleware {
    pub(crate) socket_addr: String,
}

pub(crate) struct UpgradeMiddleware;

pub(crate) struct ResponseMiddleware;

pub(crate) struct RootRoute {
    pub(crate) response_body: String,
    pub(crate) cookie1: String,
    pub(crate) cookie2: String,
}

pub(crate) struct SseRoute;

pub(crate) struct WebsocketRoute;

pub(crate) struct DynamicRoute {
    pub(crate) params: RouteParams,
}

pub(crate) struct GetAllRoutes;