Blaine Schmeisser
|
32bd5e2e28
|
Add ability to use a function for the `lookup` option.
|
10 years ago |
Chris Thompson
|
203079ce9b
|
If "X-RateLimit-Remaining: 1", allow one additional API request
|
10 years ago |
Nathan Bowser
|
5319d8e949
|
Adds the X-Ratelimit-Reset header.
Useful so API users know when the rate limits will reset.
|
10 years ago |
Leonard Martin
|
a9c88eb082
|
Allow for optional handler for rate limiting
Instead of hardcoding a response, allow an application to define its own way of handling rate limits being hit.
|
11 years ago |
Ed Wellbrook
|
7a99eff6ed
|
Fix warning in express 4
fixes deprecation warning:
```
express deprecated res.send(status, body): Use res.status(status).send(body) instead node_modules/express-limiter/index.js:43:15
```
|
11 years ago |
Dustin Diaz
|
8dd116ed93
|
fixes broken direct middleware support. adds test
|
11 years ago |
Ashley Streb
|
3c6f79aa7f
|
Add ability to pass ignoreErrors to the configuration options.
When ignoreErrors is true, if an error is encountered connecting to redis the next() middleware is called.
|
11 years ago |
Ashley Streb
|
2283789b24
|
Add ability to set skipHeaders into the options to prevent the setting of HTTP header fields for X-RateLimit-Limit, X-RateLimit-Remaining and Retry-After.
|
11 years ago |
Dustin Diaz
|
d7e38fb76a
|
new direct middleware style
|
11 years ago |
Dustin Diaz
|
1a4feb3d2d
|
whitelist method added
|
11 years ago |
Dustin Diaz
|
c63b459cff
|
now with tests :)
|
11 years ago |
Dustin Diaz
|
f5e0de0960
|
eureka
|
11 years ago |