PyDocs

Nav

Internet Protocols and Support

BaseCGIHandler

  • BaseCGIHandler(stdin, stdout, stderr, environ, multithread=True, multiprocess=False)
CGI-like systems using input/output/error streams and environ mapping

Usage::

    handler = BaseCGIHandler(inp,out,err,env)
    handler.run(app)

This handler class is useful for gateway protocols like ReadyExec and
FastCGI, that have usable input/output/error streams and an environment
mapping.  It's also the base class for CGIHandler, which just uses
sys.stdin, os.environ, and so on.

The constructor also takes keyword arguments 'multithread' and
'multiprocess' (defaulting to 'True' and 'False' respectively) to control
the configuration sent to the application.  It sets 'origin_server' to
False (to enable CGI-like output), and assumes that 'wsgi.run_once' is
False.
0 Examples
No examples for wsgiref.handlers/BaseCGIHandler.
See Also
No see-alsos for wsgiref.handlers/BaseCGIHandler
0 Notes
No notes for BaseCGIHandler