summaryrefslogtreecommitdiff
path: root/cherrypy/lib/httptools.py
Commit message (Collapse)AuthorAgeFilesLines
* Renamed httptools to "http" to reduce confusion with new cherrypy.tools. ↵Robert Brewer2006-06-121-487/+0
| | | | Moved non-Tool-related code from cptools to {{{lib/__init__}}}. Added docstrings.
* httptools.Version was overengineered. Shame on me. Using tuples gives a 2-3% ↵Robert Brewer2006-06-121-85/+21
| | | | speed boost.
* Removed cherrypy.NotReady. Instead, cherrypy.engine will return HTTP 503 ↵Robert Brewer2006-06-061-0/+4
| | | | Service Unavailable, and cherrypy.server will raise IOError.
* Made tree.Application.script_name, and it now defaults to "", not "/".Robert Brewer2006-05-111-1/+3
|
* Dispatch and config lookup now happens as early as possible, once per ↵Robert Brewer2006-05-101-2/+4
| | | | request (unless InternalRedirect is raised). Also moved the logging code out of {{{_cputil}}} and into {{{__init__}}}. xmlrpc still needs fixed so it doesn't re-write path_info.
* Lots of changes to error and log handling:Robert Brewer2006-05-011-3/+3
| | | | | | | | | | | 1. Removed RequestHandled and InternalError. 2. Error response is now overridable by replacing request.error_response. Tools should do this in setup(). 3. New request.log_access attribute. 4. Moved response.handleError to request.handle_error. 5. Logging of tracebacks and request headers are now tools. 6. New ErrorRedirect tool class. 7. Tools may now be anonymous (not necessary to be placed in tools module globals). 8. Continued the move to lower_with_underscores.
* Extracted CaseInsensitiveDct base class out of HeaderMap.Robert Brewer2006-03-251-6/+14
|
* Renamed queryString into query_stringRemi Delon2006-02-161-5/+5
|
* Fix for #456: No readlines() method in lib.httptools.SizeCheckWrapperRobert Brewer2006-02-081-0/+13
|
* Moved some logic (the transformation of response headers from a dict to a ↵Robert Brewer2006-02-071-0/+39
| | | | list) out of _cphttptools and into httptools.
* Fix #449Sylvain Hellegouarch2006-01-261-1/+1
|
* Fix for #145. See the ticket for details about this fix.Robert Brewer2006-01-031-0/+7
|
* Fix for #361 (Misleading error message).Robert Brewer2005-12-301-0/+6
|
* Fix for #421 (Incorrect border condition in readline of SizeCheckWrapper).Robert Brewer2005-12-291-6/+5
|
* Fix for #388 (IPv6 support). While I was up to my elbows in the HTTP ↵Robert Brewer2005-11-281-0/+60
| | | | | | | | | | servers, I went ahead and: 1. Implemented MaxSize limits in _cphttpserver 2. Made PooledThreadServer a subclass of CherryHTTPServer, which consolidated a lot of features that each had which the other didn't, including AF_UNIX support. 3. Implemented AF_UNIX support for _cpwsgiserver. 4. Pulled the MaxSize logic out of _cpwsgiserver completely; the upshot is that both server interfaces can now use the same wrapper (now in lib/httptools), and 413 errors in the headers are now logged by CP. 5. Implemented server.socketQueueSize for _cpwsgiserver.
* Fix for #393 (in trunk).Robert Brewer2005-11-161-2/+8
|
* Bah. headerMap.elements is better than request.header_elements. This way ↵Robert Brewer2005-11-141-0/+7
| | | | it's available for request and response headers.
* Merged ExpectValue and AcceptValue into new HeaderElement class. Added ↵Robert Brewer2005-11-141-97/+60
| | | | request.header_elements method.
* httptools.Version object now takes ints and floats as constructor args (and ↵Robert Brewer2005-11-101-1/+7
| | | | therefore can compare against ints and floats, now). Also moved cherrypy.request/response.version logic from processHeaders to processRequestLine.
* Added support for the Expect header. The tests are disabled for it right now ↵Sylvain Hellegouarch2005-11-091-0/+50
| | | | while I look for a workaround to a limitation from httplib
* Moved a bunch of stuff from lib/cptools into a new lib/httptools module. The ↵Robert Brewer2005-11-051-0/+379
| | | | new module does not reference cherrypy (and should never do so). Think of it as the httptools module Python should distribute. ;)
* Removing deprecated modules.Robert Brewer2005-10-311-46/+0
|
* Fix for ticket #239.Robert Brewer2005-08-111-4/+6
| | | | | | 1. httptools.redirect() now raises HTTPRedirect(). 2. httptools.py is now formally deprecated. 3. HTTPRedirect now always outputs complete absolute URL's.
* Implements ticket #195.Robert Brewer2005-06-251-4/+4
| | | | | | | | 1. cpg module removed, all content moved into cherrypy.__init__. 2. Removed some circular imports in sessionfilter by moving sessionfilter.sessionfilter and _sessionTypes into sessionfilter.__init__. 3. renamed _cpconfig to "config". 4. renamed _cpserver to "server". 5. renamed cperror to _cperror; cherrypy.__init__ now imports * from _cperror.
* Merged branches/ticket-151 into trunk. See CHANGELOG and the branch logs for ↵Robert Brewer2005-06-011-1/+1
| | | | details.
* Fixed bug in httptools.redirectRemi Delon2005-04-261-1/+1
|
* Fixed ticket #123; now using urlparse.urljoin for concatenating urls; added ↵Remi Delon2005-04-241-14/+2
| | | | a test for httptools.redirect()
* Refactored the httptools.redirect coderdelon-experimentalRemi Delon2005-01-101-14/+19
|
* Don't copy tutorial/ and test/ into lib when installing CherryPyRemi Delon2005-01-061-1/+1
|
* \r\n > \n again, after header patchRemco Boerma2004-12-291-51/+51
|
* Changed notices to 79 chars wrap.Remco Boerma2004-12-291-36/+51
|
* small fixes for new cpg.response.body iterable type; getting ready for ↵Remi Delon2004-12-291-1/+1
| | | | 2.0.0b release
* Fixed ticket #29Remi Delon2004-11-231-8/+7
|
* (no commit message)Remi Delon2004-11-201-0/+37