Source

CherryPy / cherrypy / lib / http.py

Author Commit Message Labels Comments Date
Robert Brewer
Bye bye, py2/3.
Lakin Wecker
trunk - Porting the cherrypy.lib.httputil name change. It'll be easier to maintain two released branches if the modules are named the same. However, in the 2.6 branch we'll leave cherrypy.lib.http working and deprecate it for 3.3.
Robert Brewer
Fix for #898 (HTTPError should accept status code in same format as get_error_page).
Robert Brewer
Fix for #890 (multipart/* messages error on PageHandler.__call__).
Robert Brewer
Doc tweaks.
Robert Brewer
Fix for #803 (run CP under Google App Engine).
Robert Brewer
Minor refactor and dropping an unused import.
Robert Brewer
Moved an import.
Robert Brewer
Fix for #763 (Exception when parsing Content-Type).
Robert Brewer
Fix for #622, #742, #736. The wsgiserver would respond without closing connection and without reading the full request. Fixed now.
Robert Brewer
Fix and tests for http.urljoin. Did not correctly handle blank PATH_INFO's.
Robert Brewer
Trunk fix for #677 (_cpwsgi requestLine: PATH_INFO SCRIPT_NAME).
Robert Brewer
Docstring update and more RFC terminology.
Robert Brewer
Import minimization for #672: xmlrpclib.
Robert Brewer
Docstring updates.
Robert Brewer
First crack at attribute docs on major components. New cherrypy._AttributeDocstrings metaclass to fold magic attribute docs into the class docstring.
Robert Brewer
Fixed serious buglet in SizeCheckWrapper (allowed unmonitored read).
Robert Brewer
Removed obsolete code for multivalent HeaderMap entries.
Sylvain Hellegouarch
Fix #578
Robert Brewer
No need to encode a string twice. :/
Robert Brewer
A couple doc tweaks.
Robert Brewer
Lots of mixedCase to lower_with_underscores.
Robert Brewer
Replaced request.remote_addr, remote_port, and remote_host with a single "remote" attribute, an instance of lib.http.Host, which has "ip", "port" and "name" attributes. Added a similar request.local attribute. Changed request() signature to (local, remote, scheme). This allows requests run behind multiple HTTP servers to know the address info for their particular connection.
Robert Brewer
WSGI-related changes:
Robert Brewer
Moved RFC 2047 encoding into http.HeaderMap. Changed HeaderMap.sorted_list to HeaderMap.output (which does not sort).
Robert Brewer
Precompile some regexes for a speed boost.
Robert Brewer
encode_TEXT only for HTTP/1.1 response headers, and verify folded response headers start with linear whitespace.
Robert Brewer
Added support for RFC 2047 encoding and decoding of header values.
Robert Brewer
Replaced http.HTTPDate with its clone rfc822.formatdate.
Robert Brewer
Renamed httptools to "http" to reduce confusion with new cherrypy.tools. Moved non-Tool-related code from cptools to {{{lib/__init__}}}. Added docstrings.