Skip to main content

Crate rws_http

Crate rws_http 

Source
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 Hints links: what a usable Link value is. The middleware that sends them is rust-web-server’s early_hints.
entry_point
error
extract
header
HTTP header fields.
ip_filter
Addresses and CIDR ranges: TrustedProxies and the range parsing the IpFilter middleware (in rust-web-server’s ip_filter) is built on.
json
A dependency-free JSON parser and serializer.
range
Byte ranges (RFC 9110 §14) and response bodies.
request
HTTP requests: Request and its parser.
response
HTTP responses: Response, its writers and the upstream-response parser.
server_config
Typed server configuration.
virtual_host