WashNGo-2.12: WASH is a family of embedded domain specific languages (EDSL) for programming Web applications in Haskell.ContentsIndex
WASH.CGI.CGITypes
Description
Types of outputable data.
Synopsis
newtype URL = URL {
unURL :: String
}
data FileReference = FileReference {
fileReferenceName :: FilePath
fileReferenceContentType :: String
fileReferenceExternalName :: String
}
data ResponseFileReference = ResponseFileReference FilePath
data Status = Status {
statusCode :: Int
statusReason :: String
statusContent :: (Maybe (WithHTML () IO ()))
}
newtype Location = Location URL
data FreeForm = FreeForm {
ffName :: String
ffContentType :: String
ffRawContents :: String
}
data CGIOption
= NoPort
| AutoPort
| Port Int
| NoHttps
| AutoHttps
| FullURL
| PartialURL
| SessionMode {
unSessionMode :: SessionMode
}
type CGIOptions = [CGIOption]
data SessionMode
= LogOnly
| StateIDOnly
| LogAndState
sessionNeedsLog :: SessionMode -> Bool
sessionNeedsState :: SessionMode -> Bool
Documentation
newtype URL
Constructors
URL
unURL :: String
show/hide Instances
data FileReference
Constructors
FileReference
fileReferenceName :: FilePathvalid local filename where this file can be accessed
fileReferenceContentType :: String
fileReferenceExternalName :: String
show/hide Instances
data ResponseFileReference
Assumes that file contains correctly formatted HTTP Response starting with Content-Type. Used internally to implement frames.
Constructors
ResponseFileReference FilePath
show/hide Instances
data Status
Constructors
Status
statusCode :: Intstatus code
statusReason :: Stringreason phrase
statusContent :: (Maybe (WithHTML () IO ()))more explanation
show/hide Instances
newtype Location
Constructors
Location URLredirection
show/hide Instances
data FreeForm
Constructors
FreeForm
ffName :: Stringinternal name
ffContentType :: StringMIME type
ffRawContents :: Stringcontents as octet stream
show/hide Instances
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]
data SessionMode
Constructors
LogOnlygenerate log in hidden field, full server replay (default)
StateIDOnlygenerate state id, server threads without replay (only with WSP)
LogAndStatelog and state id, server threads with replay as fallback (only with WSP)
show/hide Instances
sessionNeedsLog :: SessionMode -> Bool
sessionNeedsState :: SessionMode -> Bool
Produced by Haddock version 0.8