Skip to main content

Module middleware

Module middleware 

Source
Expand description

Audit capture middleware: wraps a proxied request with timing and context.

The proxy creates an AuditCapture at the start of each request, fills in context as it becomes available, then finalizes the capture after the upstream response. The resulting AuditEntry is written to the configured sink.

Structsยง

AuditCapture
Captures audit context across a single proxied request lifecycle.