Module api :: Class ThrottlingHandler
[hide private]
[frames] | no frames]

Class ThrottlingHandler
source code

                BaseHandler --+    
                              |    
urllib2.HTTPDefaultErrorHandler --+
                                  |
                                 ThrottlingHandler
Known Subclasses:
AddErrorHandler, QueryErrorHandler

HTTP Error 503 - Service unavailable

Instance Methods [hide private]
  http_error_503(self, req, fp, code, msg, headers)
The value of the Retry-After header can be either an HTTP-date or an integer number of seconds (in decimal) after the time of the response:

Inherited from urllib2.HTTPDefaultErrorHandler: http_error_default

Inherited from urllib2.BaseHandler: __lt__, add_parent, close


Class Variables [hide private]

Inherited from urllib2.BaseHandler: handler_order


Method Details [hide private]

http_error_503(self, req, fp, code, msg, headers)

source code 
The value of the Retry-After header can be either an HTTP-date or an integer number of seconds (in decimal) after the time of the response:
 Retry-After  = "Retry-After" ":" ( HTTP-date | delta-seconds )
Two examples of its use are:
 Retry-After: Fri, 31 Dec 1999 23:59:59 GMT
 Retry-After: 120