diff options
author | Robert Brewer <fumanchu@aminus.org> | 2006-08-07 01:09:48 +0000 |
---|---|---|
committer | Robert Brewer <fumanchu@aminus.org> | 2006-08-07 01:09:48 +0000 |
commit | ccdd2c9f1078f6b0d80527eda1a97f176b6fea74 (patch) | |
tree | 43f58e3f6c45d7ee4f9b83929bceed66ac611605 /cherrypy/test/benchmark.py | |
parent | 5831444079cf2c0000c9e52d3a3bad1a1df2dbea (diff) | |
download | cherrypy-git-ccdd2c9f1078f6b0d80527eda1a97f176b6fea74.tar.gz |
WSGI-related changes:
1. Changed Request.run from request_line arg to deconstructed args: method, path, query_string, and protocol.
2. Moved HTTP protocol checking from _cprequest to _cpwsgiserver. What was cherrypy.response.version is now cherrypy.request.protocol (tuple form of SERVER_PROTOCOL). request.version and response.version attributes removed. _cpwsgiserver now writes out server.protocol, not SERVER_PROTOCOL (which is a misnomer, it really should have been REQUEST_PROTOCOL).
3. path unquoting was also moved from _cprequest to _cpwsgiserver (like most other WSGI servers).
4. New test for absoluteURI in the Request-Line.
Diffstat (limited to 'cherrypy/test/benchmark.py')
-rw-r--r-- | cherrypy/test/benchmark.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/test/benchmark.py b/cherrypy/test/benchmark.py index 5800f85c..74a09f29 100644 --- a/cherrypy/test/benchmark.py +++ b/cherrypy/test/benchmark.py @@ -87,7 +87,7 @@ class NullRequest: def close(self): pass - def run(self, request_line, headers, rfile): + def run(self, method, path, query_string, protocol, headers, rfile): cherrypy.response.status = "204 No Content" cherrypy.response.header_list = [("Content-Type", 'text/html'), ("Server", "Null CherryPy"), |