Expand description
The HTTP layer of rust-web-server: requests, responses, headers, ranges, bodies, JSON, extractors, compression, CORS, errors, and the server’s settings.
Internal to rust-web-server, released with it at the same version: use
these through the rust_web_server paths (rust_web_server::request,
rust_web_server::response, …), which stay stable; this crate’s own
layout may change in any release. See spec/WORKSPACE_SPLIT.md.
Modules§
- body
- Request and response bodies.
- client_
hint - compression
- cors
- early_
hints 103 Early Hintslinks: what a usableLinkvalue is. The middleware that sends them is rust-web-server’searly_hints.- entry_
point - error
- extract
- header
- HTTP header fields.
- ip_
filter - Addresses and CIDR ranges:
TrustedProxiesand the range parsing theIpFiltermiddleware (in rust-web-server’sip_filter) is built on. - json
- A dependency-free JSON parser and serializer.
- range
- Byte ranges (RFC 9110 §14) and response bodies.
- request
- HTTP requests:
Requestand its parser. - response
- HTTP responses:
Response, its writers and the upstream-response parser. - server_
config - Typed server configuration.
- virtual_
host