| Trees | Index | Help |
|
|---|
| Module httplib :: Class HTTPMessage |
|
Message--+ |Message--+ | HTTPMessage
| Method Summary | |
|---|---|
Initialize the class instance and read the headers. (inherited from Message)
| |
Determine whether a message contains the named header. (inherited from Message)
| |
Delete all occurrences of a specific header, if it is present. (inherited from Message)
| |
Get a specific header, as from a dictionary. (inherited from Message)
| |
Get the number of headers in a message. (inherited from Message)
| |
Set the value of a header. (inherited from Message)
| |
__str__(self)
(inherited from Message)
| |
Add more field data from a continuation line. | |
Add header for field key handling repeats. | |
Get the header value for a name. (inherited from Message)
| |
Get a single address from a header, as a tuple. (inherited from Message)
| |
Get a list of addresses from a header. (inherited from Message)
| |
Find all header lines matching a given header name. (inherited from Message)
| |
Retrieve a date field from a header. (inherited from Message)
| |
Retrieve a date field from a header as a 10-tuple. (inherited from Message)
| |
getencoding(self)
(inherited from Message)
| |
Get the first header line matching name. (inherited from Message)
| |
Get the header value for a name. (inherited from Message)
| |
Get all values for a header. (inherited from Message)
| |
getmaintype(self)
(inherited from Message)
| |
getparam(self,
name)
(inherited from Message)
| |
getparamnames(self)
(inherited from Message)
| |
getplist(self)
(inherited from Message)
| |
A higher-level interface to getfirstmatchingheader(). (inherited from Message)
| |
getsubtype(self)
(inherited from Message)
| |
gettype(self)
(inherited from Message)
| |
Determine whether a message contains the named header. (inherited from Message)
| |
Determine whether a line should be skipped entirely. (inherited from Message)
| |
Determine whether a given line is a legal header. (inherited from Message)
| |
Determine whether a line is a legal end of RFC 2822 headers. (inherited from Message)
| |
Get all of a message's headers. (inherited from Message)
| |
Get all of a message's header field names. (inherited from Message)
| |
parseplist(self)
(inherited from Message)
| |
parsetype(self)
(inherited from Message)
| |
Read header lines. | |
Rewind the file to the start of the body (if seekable). (inherited from Message)
| |
setdefault(self,
name,
default)
(inherited from Message)
| |
Get all of a message's header field values. (inherited from Message)
| |
| Method Details |
|---|
addcontinue(self, key, more)Add more field data from a continuation line. |
addheader(self, key, value)Add header for field key handling repeats. |
readheaders(self)Read header lines. Read header lines up to the entirely blank line that terminates them. The (normally blank) line that ends the headers is skipped, but not included in the returned list. If a non-header line ends the headers, (which is an error), an attempt is made to backspace over it; it is never included in the returned list. The variable self.status is set to the empty string if all went well, otherwise it is an error message. The variable self.headers is a completely uninterpreted list of lines contained in the header (so printing them will reproduce the header exactly as it appears in the file). If multiple header fields with the same name occur, they are combined according to the rules in RFC 2616 sec 4.2: Appending each subsequent field-value to the first, each separated by a comma. The order in which header fields with the same field-name are received is significant to the interpretation of the combined field value. |
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 1.1 on Thu Oct 16 16:37:23 2003 | http://epydoc.sf.net |