OptionalheadersOptionalkeyFunction to generate key for rate limiting
Max number of requests per window
OptionalmessageCustom error message (string or JSON)
OptionalonCalled when rate limit is hit
OptionalstatusHTTP status code to return
OptionalstoreStorage backend
OptionalwindowWindow duration in milliseconds
Whether to add rate limit headers