Home | Trees | Indices | Help |
|
---|
|
urllib2.Request --+ | HttxRequest
A subclass of urllib2 Request to retain compatibility and make it usable for cookies and whatever may be needed
|
|||
|
|||
bool |
|
||
bool |
|
||
HttxRequest |
|
||
HttxRequest |
|
||
Inherited from |
|
|||
namedtuple result of urlsplit (check the Python docs) |
parsed It holds the result of the urlsplit(url) done in the constructor for practical purposes |
|
|||
allheaders Property to return all the headers to be sent in a request |
|||
method Property to have a handy alias for Request.get_method |
|||
scheme Property to have a handy alias for Request.get_type or parsed.scheme |
|||
netloc Property to have a handy alias for Request.get_host or parsed.netloc |
|||
body Property to have a handy alias for Request.get_data |
|
Constructor. It delegates construction to the base class Request and initializes the member variables It performs an additional call of Request.get_type and Request.get_host to ensure that the Request object is properly initialized. Because this is done by the urllib2 library, but we are just using the request
|
Utility function to avoid cluttering external code with string comparisons
|
Utility function to avoid cluttering external code with string comparisons
|
Clone a request with a change of url to support redirection By using the normal/unredirected header separation in Request it is easy to clone for a redirection by only supplying the new headers to the class
|
Deepcopy support.
|
|
allheadersProperty to return all the headers to be sent in a request urllib2 distinguishes amongst normal headers and headers that will not be used if the original request is redirected Therefore it is impossible to request all headers in just one call Although Request has a utility function, it returns a list of tuples rather than a dictionary This property returns a dictionary
|
methodProperty to have a handy alias for Request.get_method
|
schemeProperty to have a handy alias for Request.get_type or parsed.scheme
|
netlocProperty to have a handy alias for Request.get_host or parsed.netloc
|
bodyProperty to have a handy alias for Request.get_data
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Aug 13 14:56:41 2011 | http://epydoc.sourceforge.net |