Skip to main content

check_api_rate_limit

Function check_api_rate_limit 

Source
pub fn check_api_rate_limit(client_key: &str) -> RateLimitDecision
Expand description

Evaluate the per-client-IP 60-second fixed-window API rate limiter (P-5 / O-10). Setting ARKS_API_RATE_LIMIT_PER_MIN=0 disables enforcement while still reporting unlimited.