View Source Regulator.Plug (Regulator v0.6.0)
A plug used for regulating the concurrency limit of an endpoint or series of endpoints.
Options
:regulator
- Required. The regulator to use for this plug.:error_code
- The status code to use when the concurrency limit is reached. Defaults to 403.:error_message
- The message to return when the concurrency limit is reached. Must be a binary. Defaults to "Overloaded".