Modules
compressionResponse compression: choosing an algorithm from the client's `Accept-Encoding` header, and compressing bodies with it.encodeOf response data, written straight from JSON values.errorErrors raised by the framework and by route actions, and the `Result` type that carries them.filesStatic files loaded into memory and served by `crate::Http::run` for an exact URI match.headersHeader maps: lowercased names, each with one or more values, in the order the names were first set.hookHooks and routes: callbacks with declared params and injections, and the resources they are injected from.httpThe application: routes, hooks by group, request dispatch with params, validators and injections, and static files.multipartParsing of `multipart/form-data` bodies into form fields and uploaded files.paramsRequest parameters as JSON values: parsing query strings, form bodies and JSON bodies into `Params`.requestThe incoming request: method, path, headers, cookies, query string, form, multipart and JSON bodies, and the client's address and scheme.responseThe outgoing response: status, headers and cookies set by the application, sent once through `Response::send` (or streamed with `Response::chunk`); what reaches the connection is recorded as a `Wire`.routerThe routing table: routes by HTTP method and path template, matched against request paths.serverThe HTTP/1.1 server on hyper: serves an application on a TCP socket.telemetryThe HTTP server metrics `crate::Http::run` records, following the OpenTelemetry semantic conventions, and the instrument traits an exporter implements to receive them.trustedWhich forwarded headers the server believes for the client's address and scheme, when it runs behind a proxy.viewServer-side views: templates with escaped params, filters, nesting and HTML minification.
Contents
Rust
pub const COMPRESSION_BROTLI_LEVEL_DEFAULT: i32 = 4The Brotli quality responses are compressed with.
Rust
pub const COMPRESSION_MIN_SIZE_DEFAULT: usize = 1024The default minimum body size for compression, in bytes: only larger bodies are compressed.
Rust
pub const COMPRESSION_ZSTD_LEVEL_DEFAULT: i32 = 3The Zstandard level responses are compressed with.