hapi-rate-limiter icon indicating copy to clipboard operation
hapi-rate-limiter copied to clipboard

Add request and response toolkit to the overLimitError

Open francois2metz opened this issue 3 years ago • 0 comments

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.

francois2metz avatar May 10 '22 08:05 francois2metz