Std.Http.Server.Guard.rateLimited
fn
rateLimited: Int -> Int -> fn(Std.Http.Server.Route.Request, fn(Std.Http.Server.Route.Request) -> Std.Http.Response) -> Std.Http.ResponseThis is a callable function.
What it does
A rate limiting middleware that restricts requests per peer within a moving window.
Refuses requests exceeding `maxRequests` per `windowSeconds` with RFC 6585 status 429
and sets the `Retry-After` header.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
