WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.

Safe HaskellSafe-Infered

WASH.CGI.RawCGIInternal

Description

Low-level interface to CGI scripting.

Synopsis

Documentation

getGenericOption :: (a -> Bool) -> a -> [a] -> aSource

isPortOption :: CGIOption -> BoolSource

Decoding of CGIOption.

isHttpsOption :: CGIOption -> BoolSource

Decoding of CGIOption.

isURLOption :: CGIOption -> BoolSource

Decoding of CGIOption.

isSessionOption :: CGIOption -> BoolSource

Decoding of CGIOption.

fieldName :: (a, b) -> aSource

fieldContents :: (a, b) -> bSource

contentTypeUrlencoded :: [Char]Source

Initial and default content type of a link submission

initEnv :: Handle -> Handle -> IO CGIEnvSource

Construct a CGI environment from the input and output handle of the current connection and the CGI variables in the environment.

start :: CGIOptions -> (CGIInfo -> CGIParameters -> IO ()) -> IO ()Source

Main entry point for low-level CGI scripts. Takes a list of CGIOption and a CGIProgram and runs it as a CGI script.

startEnv :: CGIEnv -> CGIOptions -> (CGIInfo -> CGIParameters -> IO ()) -> IO ()Source

parseCookies :: String -> [(String, String)]Source

dropSpecialParameters :: [(String, a)] -> [(String, a)]Source

decodeMultiPart :: String -> String -> [(String, CGIRawValue)]Source

extractContents :: String -> String -> Maybe (String, String)Source

extractBoundary :: String -> Maybe StringSource

advanceIC :: String -> String -> Maybe StringSource

parameterLines :: String -> [String]Source

decodeLine :: String -> (String, CGIRawValue)Source

assocParm :: String -> CGIParameters -> Maybe CGIValueSource

assoc :: Eq a => a -> [(a, b)] -> Maybe bSource

generateKey :: IO (Maybe (Integer, String, String))Source

extendRandomly :: [Char] -> [Char]Source

makeEncoder :: Maybe (Integer, String, String) -> String -> StringSource

decode :: String -> IO StringSource

encrypt1 :: [Char] -> [Char] -> [Char]Source

decrypt1 :: [Char] -> [Char] -> [Char]Source

encrypt, decrypt :: String -> String -> StringSource

cadd :: Char -> Char -> CharSource

csub :: Char -> Char -> CharSource