pub async fn production_headers_middleware(
__arg0: State<HttpServerState>,
req: Request<Body>,
next: Next,
) -> Response<Body>Expand description
Production headers middleware
Adds configured headers to all responses, with support for template expansion. Templates supported:
{{uuid}}- Generates a new UUID for each request{{now}}- Current timestamp in RFC3339 format{{timestamp}}- Current Unix timestamp