diff options
author | Robert Brewer <fumanchu@aminus.org> | 2006-03-02 08:05:04 +0000 |
---|---|---|
committer | Robert Brewer <fumanchu@aminus.org> | 2006-03-02 08:05:04 +0000 |
commit | 16d0f542f72e1966fe00d1ba73c523e4fa4417e6 (patch) | |
tree | d2ee96e5311bc0b5db1f14f4b6b181e151f2548a /cherrypy/_cpengine.py | |
parent | b944a402043843e7f7e81da79ceba5ddcb158113 (diff) | |
download | cherrypy-git-16d0f542f72e1966fe00d1ba73c523e4fa4417e6.tar.gz |
New Engine.response_class attribute (which allows a new -null switch for benchmark.py, to show how much of the request is spent in the HTTP server as opposed to the Request object).
Diffstat (limited to 'cherrypy/_cpengine.py')
-rw-r--r-- | cherrypy/_cpengine.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cherrypy/_cpengine.py b/cherrypy/_cpengine.py index f1180c4c..7ba42780 100644 --- a/cherrypy/_cpengine.py +++ b/cherrypy/_cpengine.py @@ -20,6 +20,7 @@ class Engine(object): """The application server engine, connecting HTTP servers to Requests.""" request_class = _cphttptools.Request + response_class = _cphttptools.Response def __init__(self): self.state = STOPPED @@ -186,6 +187,6 @@ class Engine(object): r = self.request_class(clientAddress[0], clientAddress[1], remoteHost, scheme) cherrypy.serving.request = r - cherrypy.serving.response = _cphttptools.Response() + cherrypy.serving.response = self.response_class() return r |