How to test if your rate limiting works:
for i in {1..200}; do curl -s -o /dev/null -w "%{http_code}\n" http://localhost:4567; done
1..200: number of requests http://localhost:4567: the URL that needs to be tested
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
for i in {1..200}; do curl -s -o /dev/null -w "%{http_code}\n" http://localhost:4567; done
1..200: number of requests http://localhost:4567: the URL that needs to be tested