Source

CherryPy / cherrypy / _cpengine.py

Diff from to

File cherrypy/_cpengine.py

     """The application server engine, connecting HTTP servers to Requests."""
     
     request_class = _cphttptools.Request
+    response_class = _cphttptools.Response
     
     def __init__(self):
         self.state = STOPPED
         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