(index ("fcgi-handler" 0) ("fcgi-register-application" 115) ("fcgi-responder" 392) ("fcgi-authorizer" 392) ("fcgi-filter" 392) ("cgi-handler" 637) ("cgi-handler*" 1063) ("cgi-default-environment" 1380))
(def (sig (procedure "(fcgi-handler app-name #!key (continue #f))" (id fcgi-handler))) (p "TODO: Document this."))
(def (sig (procedure "(fcgi-register-application name role filename socket prespawn maxspawn)" (id fcgi-register-application))) (p "TODO: Document this.") (p "Role is one of the role constants " (tt "fcgi-responder") ", " (tt "fcgi-authorizer") " or " (tt "fcgi-filter") "."))
(def (sig (constant "fcgi-responder" (id fcgi-responder)) (constant "fcgi-authorizer" (id fcgi-authorizer)) (constant "fcgi-filter" (id fcgi-filter))) (p "Constants that store role identifiers for use in " (tt "fcgi-register-application") "."))
(def (sig (procedure "(cgi-handler filename [interpreter])" (id cgi-handler))) (p "The cgi handler simply calls CGI scripts. It is assumed the requested file is executable if no interpreter is given. (If used as a regular handler, it will only receive the filename).  If the filename is a relative path, it is assumed to be relative to " (tt "(root-path)") ".  It's safer to store your scripts outside the docroot, though!"))
(def (sig (procedure "(cgi-handler* [interpreter])" (id cgi-handler*))) (p "The " (tt "cgi-handler*") " procedure is usually more useful.  It allows you to define an interpreter to use for files and returns a new handler. See " (int-link "/egg/spiffy" "spiffy") "'s example for " (tt "file-extension-handlers") "."))
(def (sig (procedure "(cgi-default-environment [env-alist])" (id cgi-default-environment))) (p "The environment variables that should be in the default environnment of every CGI program.  Variables like " (tt "SCRIPT_NAME") " will be added dynamically to the end of this alist.") (p "Default:") (highlight scheme "((\"GATEWAY_INTERFACE\" . \"CGI/1.1\"))"))
