Back to module index

Go to module by name

urllib

urllib.response

Response classes used by urllib.

The base class, addbase, defines a minimal file-like interface,
including read() and readline().  The typical response object is an
addinfourl instance, which defines an info() method that returns
headers and a geturl() method that returns the url.

Classes

addbase

Base class for addinfo and addclosehook. Is a good idea for garbage collection.
close(self)


          Close the temporary file, possibly deleting it.
        

addclosehook

Class to add a close hook to an open file.
close(self)

addinfo

class to add an info() method to an open file.
close(self)


          Close the temporary file, possibly deleting it.
        
info(self)

addinfourl

class to add info() and geturl() methods to an open file.
close(self)


          Close the temporary file, possibly deleting it.
        
getcode(self)
geturl(self)
info(self)
status = <property object at 0x7f75e0768a90>

Modules

tempfile