v0.35.1: performance, AGPL licensing and documentation overhaul

- Web Server reads static files inline; proxy middleware chain flattened
- About window with license summary and project links; AGPL-3.0-or-later
- Rewritten documentation: feature list, screenshots, performance guide
- Fix false spikes in per-Vhost request-rate charts
This commit is contained in:
gru committed 2026-11-05 18:29:56 +01:00
1 parent d3b492874b
commit eba9f89283
135 files changed
+1425 -1064

No files matched your search

+12 -8
View File
@@ -183,7 +183,7 @@ impl Page {
*response.status_mut() = status;
let headers = response.headers_mut();
headers.insert(
"content-type",
::http::header::CONTENT_TYPE,
HeaderValue::from_static(if matches!(self.kind, Kind::Empty) {
"text/plain; charset=utf-8"
} else {
@@ -192,15 +192,18 @@ impl Page {
);
if !bodyless {
if let Ok(value) = HeaderValue::from_str(&length.to_string()) {
headers.insert("content-length", value);
headers.insert(::http::header::CONTENT_LENGTH, value);
}
}
headers.insert("cache-control", HeaderValue::from_static("no-store"));
headers.insert(
::http::header::CACHE_CONTROL,
HeaderValue::from_static("no-store"),
);
if matches!(self.kind, Kind::Welcome) {
response.extensions_mut().insert(MinimalWelcome);
} else {
headers.insert(
"x-content-type-options",
::http::header::X_CONTENT_TYPE_OPTIONS,
HeaderValue::from_static("nosniff"),
);
}
@@ -213,10 +216,11 @@ impl Page {
*response.status_mut() = StatusCode::METHOD_NOT_ALLOWED;
response
.headers_mut()
.insert("allow", HeaderValue::from_static("GET, HEAD"));
response
.headers_mut()
.insert("cache-control", HeaderValue::from_static("no-store"));
.insert(::http::header::ALLOW, HeaderValue::from_static("GET, HEAD"));
response.headers_mut().insert(
::http::header::CACHE_CONTROL,
HeaderValue::from_static("no-store"),
);
response.extensions_mut().insert(PageServed);
return response;
}