|
__init__(self,
sock,
debuglevel=0,
strict=0,
method=None)
It replaces the HTTPResponse.__init__ to allow to add and initialize
a member variable at object instantiation |
source code
|
|
|
|
|
begin(self)
Wrapper for HTTPResponse.begin to allow for the body to be read and
leave the connection free for further re-use |
source code
|
|
|
|
|
|
|
|
str
|
read(self,
amt=None)
Wrapper for HTTPResponse.read to read the body contents from the
StringIO object created during httxbegin connection free for further
re-use |
source code
|
|
|
|
|
_safe_read(self,
amt)
Read the number of bytes requested, compensating for partial reads. |
|
|
|
|
|
getheader(self,
name,
default=None) |
|
|
|
getheaders(self)
Return list of (header, value) tuples. |
|
|
|
|
|
_httxinit(self,
sock,
debuglevel=0,
strict=0,
method=None,
buffering=False) |
|
|
|
_httxread(self,
amt=None) |
|
|
bool
|
authenticating(self)
Utility function to check if a response indicates that pending
network activity exists, because a new request has been isssued
following an authentication request |
source code
|
|
str
|
|
|
getbodyfile(self)
Utility function for a property tet descriptor for bodyfile |
source code
|
|
list
|
getheaderlist(self,
name)
return a list of all header returned with the same name
(www-authenticate is an example) |
source code
|
|
HTTPMessage
|
info(self)
Utility function to make HTTPResponse fully compatible with CookieJar
requirements |
source code
|
|
bool
|
isactive(self)
Utility function to check if a response is underdoing a redirection
or authentication and network activity is pending redirection or a
CONNECT tunnel has been initiated |
source code
|
|
bool
|
isauth(self)
Utility function to check if a response is requesting authentication |
source code
|
|
bool
|
|
bool
|
isauthuser(self)
Utility function to check if the requested authentication is
www-authenticate |
source code
|
|
bool
|
isredir(self)
Utility function to check if a response is requesting redirection |
source code
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
redirecting(self)
Utility function to check if a response indicates that pending
network activity exists, because a new request has been isssued
following a redirect request |
source code
|
|
bool
|
redirecting_or_authenticating(self)
Utility function to check if a response is underdoing a redirection
or authentication and network activity is pending redirection or a
CONNECT tunnel has been initiated |
source code
|
|
|
|