rust-web-server 18.27.2

Single-binary web server and reverse proxy: automatic HTTPS (Let's Encrypt), HTTP/1.1, HTTP/2 and HTTP/3, load balancing, auth and rate limiting, configured in one TOML file. Also a Rust library: routing, middleware, MCP server, ORM, background jobs. No hyper, no Tower; HTTP/2 and HTTP/3 framing via h2 and quinn.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Tests of rws-http modules (`cors`, `range`, `server_config`) that run them
//! through the server, the app or a config reload: those live in this crate,
//! so the tests do too (spec/WORKSPACE_SPLIT.md).

mod cors;
mod fixtures;
mod range;
mod server_config;

/// `extract::RequestId` reads the header `RequestIdLayer` sets; rws-http
/// can't name the layer, so it keeps its own copy of the name.
#[test]
fn request_id_extractor_reads_the_layers_header() {
    assert_eq!(crate::extract::REQUEST_ID_HEADER, crate::request_id::DEFAULT_HEADER);
}