Commits

Author Commit Message Labels Comments Date
Robert Brewer
Changed the raw tuple of "socket errors to ignore" to a global socket_errors_to_ignore list.
Robert Brewer
Patched _cpserver to allow check_port on IPv6 addresses (see #388). Also a fix for http://groups.google.com/group/cherrypy-users/browse_frm/thread/bbfe5eb39c904fe0.
Robert Brewer
Fix for #388 (IPv6 support). While I was up to my elbows in the HTTP 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 i…
Sylvain Hellegouarch
oops types tile instead of title...
Sylvain Hellegouarch
Fixes missing titles in code snippets and figures (Ticket 355)
Robert Brewer
Got rid of some superfluous custom exceptions.
Robert Brewer
Fix for #311 (filter method which runs after the response is completely written (or aborted)). New 'onEndRequest' filter method. HTTP SERVERS SHOULD NOW CALL request.close() when they are done writing out.
Robert Brewer
Made response.body into a descriptor: 1. Now *anytime* you set body it will coerce it to an iterable, so code outside Request.main doesn't have to be as careful/aware of how to do that. 2. New response.collapse_body() function, which collapses the body into a single new_body string, sets response.body to [new_body], and returns new_body. 3. New request.executeMain flag (bool), to govern whether Request.main method is called. This r…
Robert Brewer
Cleaned up xmlrpcfilter (to prepare for #311 fix).
Robert Brewer
Made some Request.run arg assignments sooner.
Robert Brewer
Fixed a couple of broken tests.
Robert Brewer
The added page_handler arg should be last, not first.
Robert Brewer
Fix for test which broke in [827].
Robert Brewer
Some code was setting response.body to a string instead of a [string].
Remi Delon
Conform date format to common access log
Robert Brewer
Robert Brewer
Made profiler output more readable by prepending __init__.py modules' parent folders.
Robert Brewer
Exceptions in page handlers now add the page_handler callable to the Exception's args.
Robert Brewer
Fix for #393 (in trunk).
Robert Brewer
Fix for #389. Yet another socket error to ignore.
Robert Brewer
Docs: explanatory diagram for error-handling flow.
Robert Brewer
Modified _cpGlobalInformation to _cpGlobalHandler, and moved its call from _cphttptools to _cputil.get_object_trail. Also made it handle all methods, and fixed the NameError it was generating, and wrote a test. Also, fixed test_core and test_config, which weren't honoring the value of "server.protocolVersion" set by test.py.
Robert Brewer
Docs: updated encodingFilter config entries. (Also fixed some dtd-invalid content.)
Robert Brewer
Oops. Forgot to limit encodings to only text/* content.
Robert Brewer
Improved EncodingFilter. As before, if "encodingFilter.encoding" is provided, that encoding is forced. But if not provided, the filter now inspects the Accept-Charset request header. Use an "encodingFilter.defaultEncoding" entry (default = utf-8) to handle "Accept-Charset: *".
Robert Brewer
Bah. headerMap.elements is better than request.header_elements. This way it's available for request and response headers.
Robert Brewer
Merged ExpectValue and AcceptValue into new HeaderElement class. Added request.header_elements method.
Peter Hunt
autoreloading eggs #273
Robert Brewer
Logging of request headers: 1. Changed "showRequestHeaders" to "logRequestHeaders". 2. Moved header logic from _cpLogMessage (which is not just for errors) to _cpOnHTTPError. 3. Added "logTracebacks" and "logRequestHeaders" to _cputil.outputConfigMap.
Sylvain Hellegouarch
Moved the code handling OPTIONS * request to _cputil to a special function attribute called _cpGlobalInformation. Added support for printing the HTTP request headers when an error is logged. This can be controlled via server.showRequestHeaders in the config settings.
  1. Prev
  2. Next