MCPcopy Index your code
hub / github.com/python/cpython / BaseCGIHandler

Class BaseCGIHandler

Lib/wsgiref/handlers.py:489–510  ·  view source on GitHub ↗

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 en

Source from the content-addressed store, hash-verified

487
488
489class BaseCGIHandler(SimpleHandler):
490
491 """CGI-like systems using input/output/error streams and environ mapping
492
493 Usage::
494
495 handler = BaseCGIHandler(inp,out,err,env)
496 handler.run(app)
497
498 This handler class is useful for gateway protocols like ReadyExec and
499 FastCGI, that have usable input/output/error streams and an environment
500 mapping. It's also the base class for CGIHandler, which just uses
501 sys.stdin, os.environ, and so on.
502
503 The constructor also takes keyword arguments 'multithread' and
504 'multiprocess' (defaulting to 'True' and 'False' respectively) to control
505 the configuration sent to the application. It sets 'origin_server' to
506 False (to enable CGI-like output), and assumes that 'wsgi.run_once' is
507 False.
508 """
509
510 origin_server = False
511
512
513class CGIHandler(BaseCGIHandler):

Callers 1

testCGIEnvironMethod · 0.90

Calls

no outgoing calls

Tested by 1

testCGIEnvironMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…