HTTP Parser compatible 1.0 & 1.1 This parser can parse HTTP
requests and response.
|
__init__(self,
ptype=' response ' ,
should_close=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
finalize_headers(self,
headers,
headers_str,
buf2)
parse the headers |
source code
|
|
|
|
|
|
|
_parse_headerl(self,
hdrs,
line)
parse header line |
source code
|
|
|
|
|
|
|
|
|
filter_body(self,
buf)
Filter body and return a tuple: (body_chunk, new_buffer) Both can be
None, and new_buffer is always None if its empty. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|