minco-http
Axum and Tower delivery conventions for Minco applications.
It provides:
- exact-origin CORS configuration;
- conditional request headers and browser-visible resource metadata;
- request IDs and propagation;
- request-body and timeout limits;
- sensitive-header handling;
- tracing and optional compression;
- provider-neutral principals;
- RFC 9457-style Problem Details responses; and
- typed
Retry-After, bearer challenge, deprecation, sunset, and link metadata.
use ;
use ;
let router = new.route;
let router = apply_standard_middleware?;
# Ok::
Response metadata composes with any Axum response without changing application authorization or lifecycle policy:
use IntoResponse;
use StatusCode;
use ;
let response = new
.bearer_challenge
.wrap
.into_response;
assert_eq!;
See Serve browser and native clients from one API for authentication, retries, compatibility, and device-integrity guidance.