t.w.t.CGIScript(resource.LeafResource) : class documentation

Part of twisted.web2.twcgi View Source View In Hierarchy

Known subclasses: twisted.web2.twcgi.FilteredScript

I represent a CGI script.

My implementation is complex due to the fact that it requires asynchronous IPC with an external process with an unpleasant protocol.
Method __init__ Initialize, with the name of a CGI script file.
Method render Do various things to conform to the CGI specification.
Method http_POST Undocumented

Inherited from LeafResource:

Method locateChild Locate another object which can be adapted to IResource.

Inherited from RenderMixin (via LeafResource):

Method allowedMethods
Method checkPreconditions No summary
Method renderHTTP See iweb.IResource.renderHTTP.
Method http_OPTIONS Respond to a OPTIONS request. @param request: the request to process. @return: an object adaptable to iweb.IResponse.
Method http_TRACE Respond to a TRACE request. @param request: the request to process. @return: an object adaptable to iweb.IResponse.
Method http_HEAD Respond to a HEAD request. @param request: the request to process. @return: an object adaptable to iweb.IResponse.
Method http_GET Respond to a GET request.
def __init__(self, filename): (source)
Initialize, with the name of a CGI script file.
def render(self, request): (source)

Do various things to conform to the CGI specification.

I will set up the usual slew of environment variables, then spin off a process.
def http_POST(self, request): (source)
Undocumented
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:22:34.