WashNGo-2.12: WASH is a family of embedded domain specific languages (EDSL) for programming Web applications in Haskell.ContentsIndex
WASH.CGI.RawCGI
Synopsis
type CGIProgram = CGIInfo -> CGIParameters -> IO ()
data CGIOption
= NoPort
| AutoPort
| Port Int
| NoHttps
| AutoHttps
| FullURL
| PartialURL
| SessionMode {
unSessionMode :: SessionMode
}
type CGIOptions = [CGIOption]
start :: CGIOptions -> (CGIInfo -> CGIParameters -> IO ()) -> IO ()
Documentation
type CGIProgram = CGIInfo -> CGIParameters -> IO ()
data CGIOption
Constructors
NoPortdo not include port number in generated URLs
AutoPortinclude automatically generated port number in generated URLs (default)
Port Intuse this port number in generated URLs
NoHttpsdo not attempt to detect Https
AutoHttpsautodetect Https by checking for port number 443 and env var HTTPS (default)
FullURLgenerate full URL including scheme, host, and port
PartialURLgenerate absolute path URL, only (default)
SessionMode
unSessionMode :: SessionMode
show/hide Instances
type CGIOptions = [CGIOption]
start :: CGIOptions -> (CGIInfo -> CGIParameters -> IO ()) -> IO ()
Main entry point for low-level CGI scripts. Takes a list of CGIOption and a CGIProgram and runs it as a CGI script.
Produced by Haddock version 0.8