🔐 trillium-basic-auth — HTTP Basic authentication
HTTP Basic authentication for trillium. Handlers placed after BasicAuth in the chain only run
for authenticated requests; unauthenticated requests receive a 401 Unauthorized with a
WWW-Authenticate challenge header.
Example
use BasicAuth;
let app = ;
// run with your chosen runtime adapter, e.g.:
// trillium_tokio::run(app);
Safety
This crate uses #![forbid(unsafe_code)].