Gungho::Component::Throttle::Domain - Throttle By Domain
--- throttle: domain: max_items 1000 interval: 3600 domains: - match: 'A [Regular]+ Exp?ression' - match: \.cpan\.org$ components: - Throttle::Domain
This component allows you to throttle requests by domain names.
You can specify a regular expression, in which case only the domains that match the particular regular expression will be throttled. Otherwise, the hostname from each request will be used as the key to throttle
Checks if a request can be executed succesfully. Returns 1 if it's ok to execute the request.