Functions§
- auth_
when_ required - Middleware that rejects requests without a login of one of the accepted
methods when
settings.registry.auth_requiredistrue. - errors_
as_ json - Turns error responses that are not JSON yet, like the rejections of axum’s
extractors, into the error format of all Kellnr endpoints. Their text
becomes the detail; other headers are kept. A
PlainTextErrorstays as it is.