Package cm_api :: Module http_client :: Class HTTPErrorProcessor
[hide private]
[frames] | no frames]

Class HTTPErrorProcessor

source code

   urllib2.BaseHandler --+    
                         |    
urllib2.HTTPErrorProcessor --+
                             |
                            HTTPErrorProcessor

Python 2.4 only recognize 200 and 206 as success. It's broken. So we install the following processor to catch the bug.

Instance Methods [hide private]
 
http_response(self, request, response) source code
 
https_response(self, request, response) source code

Inherited from urllib2.BaseHandler: __lt__, add_parent, close

Class Variables [hide private]

Inherited from urllib2.HTTPErrorProcessor: handler_order

Method Details [hide private]

http_response(self, request, response)

source code 
Overrides: urllib2.HTTPErrorProcessor.http_response

https_response(self, request, response)

source code 
Overrides: urllib2.HTTPErrorProcessor.http_response