Why does Salvo RateLimiter
call ctrl.skip_rest()
?
#852
-
Hi, I decided to delve deeper into how the middleware works in Salvo. I noticed Given this behavior, why does Am I correct, or am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
After each handler is called, salvo checks the response. If its status code is an error, the subsequent handlers execution is terminated. In |
Beta Was this translation helpful? Give feedback.
After each handler is called, salvo checks the response. If its status code is an error, the subsequent handlers execution is terminated.
In
RateLimiter
, you can indeed notcall ctrl.skip_rest()
, but I think it is more logical to call it.