Skip to main content

api_throttled

Function api_throttled 

Source
pub fn api_throttled(per_minute: u32) -> MiddlewareStack
Expand description

api with an explicit per-minute limit.

The thing a name in a registry could not do: a group that takes an argument. A string-keyed registry spells this 'throttle:60,1' and parses the limit back out of the name.