ContentsIndex
RawCGITypes
Synopsis
type CGIProgram = CGIInfo -> CGIParameters -> IO ()
type CGIParameter = (String, CGIValue)
type CGIParameters = [CGIParameter]
type CGIValue = String
data CGIRawValue
= CGIRawString String
| CGIRawFile String String String
data CGIInfo = CGIInfo {
cgiUrl :: URL
cgiPathInfo :: String
cgiContentType :: String
cgiContents :: String
cgiCookies :: [(String, String)]
cgiArgs :: [String]
cgiHandle :: Handle
}
data CGIEnv = CGIEnv {
serverName :: String
serverPort :: String
serverSoftware :: String
serverProtocol :: String
gatewayInterface :: String
scriptName :: String
requestMethod :: String
contentLength :: String
contentType :: String
httpAccept :: String
httpCookie :: String
pathInfo :: String
pathTranslated :: String
remoteHost :: String
remoteAddr :: String
remoteUser :: String
authType :: String
rawContents :: String
rawArgs :: [String]
handle :: Handle
httpsEnabled :: Bool
}
Documentation
type CGIProgram = CGIInfo -> CGIParameters -> IO ()
type CGIParameter = (String, CGIValue)
type CGIParameters = [CGIParameter]
type CGIValue = String
data CGIRawValue
Constructors
CGIRawString String
CGIRawFile String String Stringname, contentType, content
data CGIInfo
Constructors
CGIInfo
cgiUrl :: URL
cgiPathInfo :: String
cgiContentType :: String
cgiContents :: String
cgiCookies :: [(String, String)]
cgiArgs :: [String]
cgiHandle :: Handle
data CGIEnv
corresponding to CGI environment variables
Constructors
CGIEnv
serverName :: String
serverPort :: String
serverSoftware :: String
serverProtocol :: String
gatewayInterface :: String
scriptName :: String
requestMethod :: String
contentLength :: String
contentType :: String
httpAccept :: String
httpCookie :: String
pathInfo :: String
pathTranslated :: String
remoteHost :: String
remoteAddr :: String
remoteUser :: String
authType :: String
rawContents :: String
rawArgs :: [String]
handle :: Handle
httpsEnabled :: Bool
Produced by Haddock version 0.6