Safe Haskell | Safe-Infered |
---|
WASH.CGI.RawCGIInternal
Description
Low-level interface to CGI scripting.
- module WASH.CGI.RawCGITypes
- getGenericOption :: (a -> Bool) -> a -> [a] -> a
- isPortOption :: CGIOption -> Bool
- getPortOption :: [CGIOption] -> CGIOption
- isHttpsOption :: CGIOption -> Bool
- getHttpsOption :: [CGIOption] -> CGIOption
- isURLOption :: CGIOption -> Bool
- getURLOption :: [CGIOption] -> CGIOption
- isSessionOption :: CGIOption -> Bool
- getSessionMode :: [CGIOption] -> SessionMode
- fieldName :: (a, b) -> a
- fieldContents :: (a, b) -> b
- contentTypeUrlencoded :: [Char]
- initEnv :: Handle -> Handle -> IO CGIEnv
- start :: CGIOptions -> (CGIInfo -> CGIParameters -> IO ()) -> IO ()
- startEnv :: CGIEnv -> CGIOptions -> (CGIInfo -> CGIParameters -> IO ()) -> IO ()
- resolveFiles :: [(String, CGIRawValue)] -> IO CGIParameters
- parseCookies :: String -> [(String, String)]
- dropSpecialParameters :: [(String, a)] -> [(String, a)]
- decodeMultiPart :: String -> String -> [(String, CGIRawValue)]
- extractContents :: String -> String -> Maybe (String, String)
- extractBoundary :: String -> Maybe String
- advanceIC :: String -> String -> Maybe String
- parameterLines :: String -> [String]
- decodeLine :: String -> (String, CGIRawValue)
- assocParm :: String -> CGIParameters -> Maybe CGIValue
- assocParmL :: String -> CGIParameters -> [CGIValue]
- assocParmR :: String -> CGIParameters -> CGIParameters
- assoc :: Eq a => a -> [(a, b)] -> Maybe b
- fieldNames :: CGIParameters -> [String]
- generateKey :: IO (Maybe (Integer, String, String))
- extendRandomly :: [Char] -> [Char]
- nrNonces :: Int
- makeEncoder :: Maybe (Integer, String, String) -> String -> String
- decode :: String -> IO String
- encrypt1 :: [Char] -> [Char] -> [Char]
- decrypt1 :: [Char] -> [Char] -> [Char]
- encrypt, decrypt :: String -> String -> String
- cadd :: Char -> Char -> Char
- csub :: Char -> Char -> Char
Documentation
module WASH.CGI.RawCGITypes
getGenericOption :: (a -> Bool) -> a -> [a] -> aSource
isPortOption :: CGIOption -> BoolSource
Decoding of CGIOption
.
getPortOption :: [CGIOption] -> CGIOptionSource
isHttpsOption :: CGIOption -> BoolSource
Decoding of CGIOption
.
getHttpsOption :: [CGIOption] -> CGIOptionSource
isURLOption :: CGIOption -> BoolSource
Decoding of CGIOption
.
getURLOption :: [CGIOption] -> CGIOptionSource
isSessionOption :: CGIOption -> BoolSource
Decoding of CGIOption
.
getSessionMode :: [CGIOption] -> SessionModeSource
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
resolveFiles :: [(String, CGIRawValue)] -> IO CGIParametersSource
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
parameterLines :: String -> [String]Source
decodeLine :: String -> (String, CGIRawValue)Source
assocParm :: String -> CGIParameters -> Maybe CGIValueSource
assocParmL :: String -> CGIParameters -> [CGIValue]Source
assocParmR :: String -> CGIParameters -> CGIParametersSource
fieldNames :: CGIParameters -> [String]Source
generateKey :: IO (Maybe (Integer, String, String))Source
extendRandomly :: [Char] -> [Char]Source
makeEncoder :: Maybe (Integer, String, String) -> String -> StringSource