Module urllib2 :: Class AbstractHTTPHandler
[hide private]
[frames] | no frames]

_ClassType AbstractHTTPHandler

BaseHandler --+
              |
             AbstractHTTPHandler
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, debuglevel=0)
 
set_http_debuglevel(self, level)
 
do_request_(self, request)
 
do_open(self, http_class, req)
Return an addinfourl object for the request, using http_class.

Inherited from BaseHandler: __lt__, add_parent, close

Class Variables [hide private]

Inherited from BaseHandler: handler_order

Method Details [hide private]

do_open(self, http_class, req)

 

Return an addinfourl object for the request, using http_class.

http_class must implement the HTTPConnection API from httplib. The addinfourl return value is a file-like object. It also has methods and attributes including:

  • info(): return a mimetools.Message object for the headers
  • geturl(): return the original request URL
  • code: HTTP status code