hyperlane_techempower 0.4.1

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.
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

pub(crate) fn init_server_config() -> ServerConfig {
    let mut server_config: ServerConfig = ServerConfig::default();
    server_config
        .set_address(Server::format_bind_address(DEFAULT_HOST, 8080))
        .set_nodelay(Some(false));
    server_config
}

pub(crate) fn init_request_config() -> RequestConfig {
    RequestConfig::low_security()
}