- Replace aioredis to redis.
- Now use
lua
script. - Break change: You should call
FastAPILimiter.init
withawait
.
await FastAPILimiter.init(redis)
- Support multiple rate strategy for one route. (#3)
- Use milliseconds instead of seconds as default unit of expiration.
- Update default_callback, round milliseconds up to nearest second for
Retry-After
value. - Access response in the callback.
- Replace transaction with pipeline.
- Configuring the global default through the FastAPILimiter.init method.
- Update status to 429 when too many requests.
- Update default_callback params and add
Retry-After
response header.