cherrypy._cpwsgi_server module¶
WSGI server interface (see PEP 333).
This adds some CP-specific bits to the framework-agnostic cheroot package.
- class cherrypy._cpwsgi_server.CPWSGIHTTPRequest(server, conn)[source]¶
Bases:
HTTPRequest
Wrapper for cheroot.server.HTTPRequest.
This is a layer, which preserves URI parsing mode like it which was before Cheroot v5.8.0.
- class cherrypy._cpwsgi_server.CPWSGIServer(server_adapter=<cherrypy._cpserver.Server object>)[source]¶
Bases:
Server
Wrapper for cheroot.wsgi.Server.
cheroot has been designed to not reference CherryPy in any way, so that it can be used in other frameworks and applications. Therefore, we wrap it here, so we can set our own mount points from cherrypy.tree and apply some attributes from config -> cherrypy.server -> wsgi.Server.
- fmt = 'CherryPy/{cherrypy.__version__} {cheroot.wsgi.Server.version}'¶
- version = 'CherryPy/18.10.1.dev53+g8fbdef0 Cheroot/10.0.1'¶
A version string for the HTTPServer.