Skip to main content

Module rate

Module rate 

Source
Expand description

Rate-limit rate parsing.

A rate is a request count over a time window. It is written either as "<count>/<unit>" (e.g. "20/min") or as a bare count (e.g. "20"), in which case the configured default window applies.

Structs§

Rate
A parsed rate limit: at most limit requests per window.