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.

error_log(msg='', level=20, traceback=False)[source]

Write given message to the error log.

fmt = 'CherryPy/{cherrypy.__version__} {cheroot.wsgi.Server.version}'
version = 'CherryPy/18.9.1.dev32+g7104cfb Cheroot/10.0.1'

A version string for the HTTPServer.