Module webui

Source

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-urlencoded and multipart/form-data content types, using axum::Form and axum_typed_multipart::TypedMultipart internally.
routes
Defines the web routes for the application.
session_auth
webview

Structsยง

AppState
ErrorContext ๐Ÿ”’
PageQuery
The PageQuery struct is meant for extracting query parameters from the request URL, specifically a ?page=N parameter. For example, /nodes?page=2.
RequestState

Constantsยง

SLOW_TTFB_THRESHOLD ๐Ÿ”’

Traitsยง

ViewContext
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 ๐Ÿ”’