SCGI module
This module provides functions needed by the SCGI interface (SCGI protocol). The majority of these functions are used by the SCGI template (scgi.ks) and should not be called directly by programs. The exceptions are scgiEnv, which should replace any call to System::getEnv within an SCGI program, and scgiPage, which may be overloaded in the same way that Webapp::displayPage is overloaded in web applications.
Type Synonyms
ChildSlot=Maybe<ChildProcess>
Data types
- SCGI::ChildProcess - Internal data type
- SCGI::SCGI - SCGI configuration
Exceptions
- BadNetString - Bad NetString
- MalformedHeaders - Malformed headers
Functions
- Bool finishedInput(Socket comm) - Internal function
- Maybe<Int> firstEmptySlot([ChildSlot] children) - Internal function
- Maybe<Int> firstSpareSlot([ChildSlot] children) - Internal function
- Void initEnv(Socket comm) - Internal function
- Char nextChar(Socket s) - Internal function
- Int numSpareServers([ChildSlot] children) - Internal function
- String scgiEnv(String key) - Get the value of an environment variable
- Void scgiPage(Socket comm,Void(Socket) fn,[Pair<String, String> ] headers) - Displays a function result
- Void scgiPage(Socket comm,Binary bdata,[Pair<String, String> ] headers) - Displays binary data
- Void scgiPage(Socket comm,HTMLDocument page) - Displays a HTML page
- Void scgiPage(Socket comm,String sdata,[Pair<String, String> ] headers) - Displays String content