Package cherrypy :: Module _cpwsgi
[hide private]
[frames] | no frames]

Module _cpwsgi

source code

WSGI interface (see PEP 333 and 3333).

Note that WSGI environ keys and values are 'native strings'; that is, whatever the type of "" is. For Python 2, that's a byte string; for Python 3, it's a unicode string. But PEP 3333 says: "even if Python's str type is actually Unicode "under the hood", the content of native strings must still be translatable to bytes via the Latin-1 encoding!"

Classes [hide private]
  VirtualHost
Select a different WSGI application based on the Host header.
  InternalRedirector
WSGI middleware that handles raised cherrypy.InternalRedirect.
  ExceptionTrapper
WSGI middleware that traps exceptions.
  _TrappedResponse
  AppResponse
WSGI response iterable for CherryPy applications.
  CPWSGIApp
A WSGI application object for a CherryPy Application.
Functions [hide private]
 
downgrade_wsgi_ux_to_1x(environ)
Return a new environ dict for WSGI 1.x from the given WSGI u.x environ.
source code
Variables [hide private]
  __package__ = 'cherrypy'