pub async fn serve(state: Arc<AppState>, addr: SocketAddr) -> Result<()>Expand description
Bind and serve the router on the given address.
The listener is wrapped with
axum::Router::into_make_service_with_connect_info so the audit
middleware can recover the immediate TCP peer’s SocketAddr from the
request extensions. The XFCC trusted-proxy gate
(crate::audit::TrustedProxies) depends on that peer information to
decide whether to honour the X-Forwarded-Client-Cert header.