Open Barbapapazes opened 1 month ago
Hello,
Actually, a route rule apply to a pattern but having it per http verb could be useful, especially for rate limiting.
Imagine the route GET /me, I do not need to rate limit it but the route PATCH /me will send an email to the user so I need to rate limit it.
GET /me
PATCH /me
coming in nitro v3 (since new rou3 library used for route rule matching natively supports verbs. radix3 in v2 cannot)
Describe the feature
Hello,
Actually, a route rule apply to a pattern but having it per http verb could be useful, especially for rate limiting.
Imagine the route
GET /me
, I do not need to rate limit it but the routePATCH /me
will send an email to the user so I need to rate limit it.Additional information