Types of outputable data.
- newtype URL = URL {}
- data FileReference = FileReference {}
- data ResponseFileReference = ResponseFileReference FilePath
- data Status = Status {
- statusCode :: Int
- statusReason :: String
- statusContent :: Maybe (WithHTML () IO ())
- newtype Location = Location URL
- data FreeForm = FreeForm {}
- data CGIOption
- = NoPort
- | AutoPort
- | Port Int
- | NoHttps
- | AutoHttps
- | FullURL
- | PartialURL
- | SessionMode { }
- type CGIOptions = [CGIOption]
- data SessionMode
- = LogOnly
- | StateIDOnly
- | LogAndState
- sessionNeedsLog :: SessionMode -> Bool
- sessionNeedsState :: SessionMode -> Bool
Documentation
data FileReference Source
FileReference | |
|
data ResponseFileReference Source
Assumes that file contains correctly formatted HTTP Response starting with Content-Type. Used internally to implement frames.
Status | |
|
FreeForm | |
|
NoPort | do not include port number in generated URLs |
AutoPort | include automatically generated port number in generated URLs (default) |
Port Int | use this port number in generated URLs |
NoHttps | do not attempt to detect Https |
AutoHttps | autodetect Https by checking for port number 443 and env var HTTPS (default) |
FullURL | generate full URL including scheme, host, and port |
PartialURL | generate absolute path URL, only (default) |
SessionMode | |
type CGIOptions = [CGIOption]Source
data SessionMode Source
LogOnly | generate log in hidden field, full server replay (default) |
StateIDOnly | generate state id, server threads without replay (only with WSP) |
LogAndState | log and state id, server threads with replay as fallback (only with WSP) |