Modulesยง
- access_
log_ layer AccessLogLayer: A standalone Tower Layer producing Apache/NCSA Common Log Format (CLF) lines with log level determined by HTTP status:- controllers
- error
- Anyhow error handling support for Axum. Based on: https://github.com/tokio-rs/axum/blob/main/examples/anyhow-error-response/src/main.rs
- flexible_
form - Axum extractor that can handle both
application/x-www-form-urlencodedandmultipart/form-datacontent types, usingaxum::Formandaxum_typed_multipart::TypedMultipartinternally. - routes
- Defines the web routes for the application.
- session_
auth - webview
Structsยง
- AppState
- Error
Context ๐ - Page
Query - The
PageQuerystruct is meant for extracting query parameters from the request URL, specifically a ?page=N parameter. For example, /nodes?page=2. - Request
State
Constantsยง
- SLOW_
TTFB_ ๐THRESHOLD
Traitsยง
- View
Context - Trait for types that can serve as a context for a Handlebars view.
Functionsยง
- build_
app_ router - error_
400 ๐ - error_
401 ๐ - error_
403 ๐ - error_
404 ๐ - error_
500 ๐ - error_
response ๐ - error_
response_ ๐json_ with_ details - Returns a JSON error response including message and details.
- hbs_
render ๐ - http_
to_ ๐https - recoverable_
error ๐ - render_
page ๐ - render_
view ๐ - respond_
dialog ๐ - respond_
general ๐ - respond_
markdown_ ๐page - respond_
page ๐ - start_
webui_ server - start_
webui_ ๐server_ inner