Skip to main content

reality_proxy_middleware

Function reality_proxy_middleware 

Source
pub async fn reality_proxy_middleware(
    config: Arc<RealityProxyConfig>,
    req: Request,
    next: Next,
) -> Response
Expand description

The middleware function. Reads reality_continuum_ratio from the UnifiedState request extension, rolls a per-request RNG, and either forwards to upstream or hands off to the next layer (mock chain).