SYNOPSYS
% plackup app-basic.psgi
THROTTLE-FREE REQUESTS
% curl -v http://localhost:5000/foo/bar
No X-Throttle-Lite-* headers will be displayed. Only content like
Throttle-free request
THROTTLED REQUESTS
% curl -v http://localhost:5000/api/user
% curl -v http://localhost:5000/api/host
Headers X-Throttle-Lite-* will be displayed with actual values of requests
X-Throttle-Lite-Limit: 5
X-Throttle-Lite-Units: req/hour
X-Throttle-Lite-Used: 3
Content like
API: User
API: Host
After limit requests will be equal used requests, additional header appears
Retry-After: 1239
X-Throttle-Lite-Expire: 1239
X-Throttle-Lite-Limit: 5
X-Throttle-Lite-Units: req/hour
X-Throttle-Lite-Used: 5
and response code will be
HTTP/1.0 429 Too Many Requests
with content
Rate Limit Exceeded