summaryrefslogtreecommitdiffstats
path: root/nova/test.py
diff options
context:
space:
mode:
authorKevin L. Mitchell <kevin.mitchell@rackspace.com>2011-07-15 17:01:31 +0000
committerTarmac <>2011-07-15 17:01:31 +0000
commit3a11738f517999ed1fd3a2c0a7ca452c7191b50f (patch)
tree2f3967842e312eb44e4bbd737e36402671418e90 /nova/test.py
parent549b1e180a724617b1904a8037364a41bcc06269 (diff)
parentac6dcb5a8802d53390584fcde8cba8ca74c1d0d0 (diff)
downloadnova-3a11738f517999ed1fd3a2c0a7ca452c7191b50f.tar.gz
nova-3a11738f517999ed1fd3a2c0a7ca452c7191b50f.tar.xz
nova-3a11738f517999ed1fd3a2c0a7ca452c7191b50f.zip
Adds greater configuration flexibility to rate limiting via api-paste.ini. In particular:
* "limits" relation provides a string representation of desired default limits in the form: - '(VERB, URI, REGEX, VALUE, UNIT); (VERB, URI, REGEX, VALUE, UNIT)'[...] + VALUE must be an integer, and UNIT must be one of SECOND, MINUTE, HOUR, DAY (case insensitive) + Empty string is also a valid value * "user:<username>" relations specify limits in the same format, but per user. * "limiter" relation can specify an alternate class to use in place of Limiter. - This makes it easier to use WsgiLimiterProxy if desired (All these relations are specified in the '[filter:ratelimit]' section.)
Diffstat (limited to 'nova/test.py')
0 files changed, 0 insertions, 0 deletions