Skip to content

Commit

Permalink
add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
badrazizi committed Dec 21, 2021
1 parent 03b8e2f commit f15b203
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

# Eclipse Vert.x Rate Limiter

configurable in-memory rate limiter

```kotlin
val clients: Storage = Storage.newInstance()
val throttling: ThrottleImpl = Throttl
.getThrottling(vertx, null, clients)
.includeHeaders(true) // will add rate limit headers to the response.
.throttlingRequest(30) // requests limit.
.throttlingTime(60) // time limit.
.throttlingTimeUnit(TimeUnit.SECONDS) // time unit.

val router = throttling.getRouter()
```

0 comments on commit f15b203

Please sign in to comment.