Skip to main content

Module rate_limit_middleware_builder

Module rate_limit_middleware_builder 

Source

Structsยง

EndpointLimiters ๐Ÿ”’
RateLimit
RateLimitConfig
RateLimitInner

Enumsยง

Bypass ๐Ÿ”’
Which key, if any, lets a request skip the limiter.
RateLimitKey
Whose requests share one quota.

Constantsยง

RATELIMIT_PROTECTION_SAFE_API_KEY_HEADER
Request header whose value, when equal to RATELIMIT_PROTECTION_SAFE_API_KEY, skips a RateLimit::bypassable limiter. tmc-server sends it, and we send it to tmc-server.

Functionsยง

build_custom_period_limiter ๐Ÿ”’
build_limiter ๐Ÿ”’
extract_client_ip_key ๐Ÿ”’

Type Aliasesยง

Key ๐Ÿ”’
Limiter ๐Ÿ”’