hapi-rate-limiter
hapi-rate-limiter copied to clipboard
Add request and response toolkit to the overLimitError
It is useful to have more context on the overLimitError mainly for logging purposes. That is why I propose to add the request argument.
Also, I want to implement a "passive mode", with the rate limit enabled but only for logging purposes, with no blocking. That's why the h param is useful to be able to return h.continue.