ContentsIndex
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
type CGIOptions = [CGIOption]
Documentation
newtype URL
Constructors
URL
unURL :: String
Instances
Read URL
Show URL
Reason URL
data FileReference
Constructors
FileReference
fileReferenceName :: FilePathvalid local filename where this file can be accessed
fileReferenceContentType :: String
fileReferenceExternalName :: String
Instances
Reason FileReference
CGIOutput FileReference
Show FileReference
Read FileReference
data ResponseFileReference
Assumes that file contains correctly formatted HTTP Response starting with Content-Type. Used internally to implement frames.
Constructors
ResponseFileReference FilePath
Instances
CGIOutput ResponseFileReference
data Status
Constructors
Status
statusCode :: Intstatus code
statusReason :: Stringreason phrase
statusContent :: (Maybe (WithHTML () IO ()))more explanation
Instances
CGIOutput Status
newtype Location
Constructors
Location URLredirection
Instances
CGIOutput Location
data FreeForm
Constructors
FreeForm
ffName :: Stringinternal name
ffContentType :: StringMIME type
ffRawContents :: Stringcontents as octet stream
Instances
CGIOutput FreeForm
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
FullURLgenerate full URL including scheme, host, and port
PartialURLgenerate absolute path URL, only
Instances
Eq CGIOption
type CGIOptions = [CGIOption]
Produced by Haddock version 0.6