Table of Contents

Class: CGICommand ./src/peak/running/commands.py

Run CGI/FastCGI in an event-driven loop

If the fcgiapp module is available and sys.stdin is a socket, this command will listen for FastCGI connections and process them as they arrive. Otherwise, it will assume that it is being run as a CGI, and use its environment attributes as the environment for the CGI command.

Note that if running in CGI mode, CGICommand will exit immediately upon completion of the request, without running an event loop at all.

To use this class, you must define the value of cgiCommand, which must be an IRerunnableCGI.

Base Classes   
EventDriven
Methods   
_run
isFastCGI
  _run 
_run ( self )

  isFastCGI 
isFastCGI ( self )

Check for fcgiapp and whether sys.stdin is a listener socket


Table of Contents

This document was automatically generated on Mon Apr 22 01:11:03 2024 by HappyDoc version 2.1