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
| 487 | |
| 488 | |
| 489 | class 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 | |
| 513 | class CGIHandler(BaseCGIHandler): |
no outgoing calls
searching dependent graphs…