class type cgi =
Netcgi.cgi class with FCGI specific methods.
method role :
[ `Authorizer | `Filter | `Responder ]
A FastCGI application can fulfill each of the following three roles:
`Responder: This is the usual role. In this case the application is expected to act like a CGI program: It receives all the information associated with an HTTP request and generates an HTTP response.
`Authorizer: An Authorizer FastCGI application receives all the information associated with an HTTP request and generates an authorized/unauthorized decision.
`Filter: A Filter FastCGI application receives all the information associated with an HTTP request, plus an extra stream of data from a file stored on the Web server, and generates a "filtered" version of the data stream as an HTTP response.
method data :
This the the channel on which the filter data is available.
All methods of the object raise
if the role is not
method data_length :
How many bytes of the data are available.
method data_mtime :
The data last modification time, expressed as an integer number of seconds since the epoch (January 1, 1970 UTC).