MCPcopy Index your code
hub / github.com/RustPython/RustPython / BaseCGIHandler

Class BaseCGIHandler

Lib/wsgiref/handlers.py:486–507  ·  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

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

Callers 1

testCGIEnvironMethod · 0.90

Calls

no outgoing calls

Tested by 1

testCGIEnvironMethod · 0.72