Skip to main content

One doc tagged with "multi-layer"

View all tags

withRateLimit Middleware

A higher-order function that wraps API route handlers with intelligent multi-layered rate limiting protection. This middleware provides the primary interface for applying rate limiting to API endpoints and integrates seamlessly with the RateLimitService.