1. cherrypy
  2. CherryPy

Source

CherryPy / cherrypy / _cphttptools.py

Author Commit Message Date Builds
Remi Delon
Deprecating simpleCookie (use "simple_cookie" instead)
Remi Delon
Reverting changeset [926]: Removing "is_app_root" proof of concept since we decided to go with the tree.mount() route for now.
Remi Delon
Proof of concept idea to handle multiple apps: adding a cherrypy.url() function and a is_app_root class attribute for apps
Robert Brewer
Changed camelCase "streamResponse" to lowercase "stream_response".
Robert Brewer
Fix for #362 (Filters do not guarantee all methods are run (when errors occur)).
Robert Brewer
Fix for #145. See the ticket for details about this fix.
Robert Brewer
Made custom Request subclasses easier to implement: 1. Moved some required code from Request._run to Request.run, so overriding _run doesn't have to repeat it. 2. The _cpserver.Server class now has a request_class attribute, which is used to instantiate the class returned by server.request. It defaults to _cphttptools.Request.
Remi Delon
Fix for #416. The default favicon.ico is now served by a default static_filter entry in the default config (much cleaner than making a special case for favicon.ico in the code).
Robert Brewer
New signature for cherrypy.log.
Remi Delon
More PEP 8 (including objectPath -> object_path); Changed virtualhostfilter to conform to PEP8; Fixes to sessionauthenticatefilter
Robert Brewer
Fix for #186 (allow exceptions to escape CP and up into WSGI middleware).
Robert Brewer
Fix for #55. The before_main filter hook can now raise InternalRedirect.
Remi Delon
Forgot browserUrl in camelCase to lowercase conversion
Sylvain Hellegouarch
you can now define the default content type to be used globally by all responses using server.default._content_type
Remi Delon
Restored backward compatibility for custom filters (was broken in [856])
Remi Delon
Big change: camelCase to lower_with_underscore names (still need to update the book)
Robert Brewer
Fix for the fix for #311 (onEndRequest method). {{{__del__}}} cannot work, since it might be called after the thread has already begun processing another request.
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…
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
Made some Request.run arg assignments sooner.
Robert Brewer
The added page_handler arg should be last, not first.
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
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
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.
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.
Robert Brewer
httptools.Version object now takes ints and floats as constructor args (and therefore can compare against ints and floats, now). Also moved cherrypy.request/response.version logic from processHeaders to processRequestLine.
  1. Prev
  2. 1
  3. 2
  4. 3
  5. 4
  6. 5
  7. 6
  8. 7
  9. Next