ContentsIndex
RawCGI
Synopsis
type CGIProgram = CGIInfo -> CGIParameters -> IO ()
data CGIOption
= NoPort
| AutoPort
| Port Int
| NoHttps
| AutoHttps
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
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
Instances
Eq CGIOption
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.5