Skip to content

Commit

Permalink
doc: delete onLimitReached from readme
Browse files Browse the repository at this point in the history
See #382
  • Loading branch information
nfriedly authored Sep 12, 2023
1 parent 1b6c5ef commit 21bd878
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,17 +422,6 @@ const limiter = rateLimit({
})
```

### `onLimitReached`

> `function`
A (sync/async) function that accepts the Express `req` and `res` objects that is
called the on the request where a client has just exceeded their rate limit.

This method was
[deprecated in v6](https://github.com/express-rate-limit/express-rate-limit/releases/v6.0.0) -
Please use a custom `handler` that checks the number of hits instead.

### `skip`

> `function`
Expand Down

0 comments on commit 21bd878

Please sign in to comment.