WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.
Source code
Contents
Index
WASH.CGI.RawCGITypes
Description
Low-level types for raw CGI programming.
Synopsis
type
CGIProgram
=
CGIInfo
->
CGIParameters
->
IO
()
type
CGIParameter
= (
String
,
CGIValue
)
type
CGIParameters
= [
CGIParameter
]
type
CGIValue
=
String
data
CGIRawValue
=
CGIRawString
String
|
CGIRawFile
String
String
String
data
CGIInfo
=
CGIInfo
{
cgiUrl
::
URL
cgiPathInfo
::
String
cgiScriptName
::
String
cgiContentType
::
String
cgiContents
::
String
cgiCookies
:: [(
String
,
String
)]
cgiArgs
:: [
String
]
cgiHandle
::
Handle
cgiSessionMode
::
SessionMode
}
data
CGIEnv
=
CGIEnv
{
serverName
::
String
serverPort
::
String
serverSoftware
::
String
serverProtocol
::
String
gatewayInterface
::
String
scriptName
::
String
requestMethod
::
Method
contentLength
::
String
contentType
::
String
httpAccept
::
String
httpCookie
::
String
pathInfo
::
String
pathTranslated
::
String
remoteHost
::
String
remoteAddr
::
String
remoteUser
::
String
authType
::
String
rawContents
::
String
rawArgs
:: [
String
]
handle
::
Handle
httpsEnabled
::
Bool
}
Documentation
type
CGIProgram
=
CGIInfo
->
CGIParameters
->
IO
()
Source
type
CGIParameter
= (
String
,
CGIValue
)
Source
type
CGIParameters
= [
CGIParameter
]
Source
type
CGIValue
=
String
Source
data
CGIRawValue
Source
internal representation of a CGI parameter value
Constructors
CGIRawString
String
CGIRawFile
String
String
String
name, contentType, content
data
CGIInfo
Source
Constructors
CGIInfo
cgiUrl
::
URL
cgiPathInfo
::
String
cgiScriptName
::
String
cgiContentType
::
String
cgiContents
::
String
cgiCookies
:: [(
String
,
String
)]
cgiArgs
:: [
String
]
cgiHandle
::
Handle
cgiSessionMode
::
SessionMode
data
CGIEnv
Source
corresponding to CGI environment variables
Constructors
CGIEnv
serverName
::
String
serverPort
::
String
serverSoftware
::
String
serverProtocol
::
String
gatewayInterface
::
String
scriptName
::
String
requestMethod
::
Method
contentLength
::
String
contentType
::
String
httpAccept
::
String
httpCookie
::
String
pathInfo
::
String
pathTranslated
::
String
remoteHost
::
String
remoteAddr
::
String
remoteUser
::
String
authType
::
String
rawContents
::
String
rawArgs
:: [
String
]
handle
::
Handle
httpsEnabled
::
Bool
Produced by
Haddock
version 2.6.1