Skip to main content

attach_rate_limit_headers

Function attach_rate_limit_headers 

Source
pub fn attach_rate_limit_headers(
    resp: &mut HttpResponse,
    dec: RateLimitDecision,
)
Expand description

Attach both IETF draft RateLimit-Policy/RateLimit and GitHub-compat X-RateLimit-* headers.