ReviewBoard-0.2.2: Haskell bindings to ReviewBoardSource codeContentsIndex

ReviewBoard.Browser extends Network.Browser module with support for multipart/form-data content type.

The package contains typed Form and form variables FormVar. The content encryption type is automatically chosen based on the type of the FormVar. Currently multipart/form-data encryption is used only if Form contains a fileUpload variable. Otherwise the request falls back to the default Network.Browser encryption type.

data Form = Form RequestMethod URI [FormVar]
data FormVar
formToRequest :: Form -> BrowserAction Request
textField :: String -> String -> FormVar
checkBox :: String -> Bool -> FormVar
fileUpload :: String -> FilePath -> String -> FormVar
toMap :: [FormVar] -> [(String, String)]
toFormVar :: [(String, String)] -> [FormVar]
data Form Source
Typed form
Form RequestMethod URI [FormVar]
data FormVar Source
Typed form variable
show/hide Instances
formToRequest :: Form -> BrowserAction RequestSource
Form to request for typed form variables, same as formToRequest in Network.Browser module.
textField :: String -> String -> FormVarSource
Create text field variable
checkBox :: String -> Bool -> FormVarSource
Create checkbox variable
fileUpload :: String -> FilePath -> String -> FormVarSource
Create file upload variable
toMap :: [FormVar] -> [(String, String)]Source
Convert [FormVar] to Network.Browser FormVar, a (String, String) map
toFormVar :: [(String, String)] -> [FormVar]Source
Opposite to toNBFormVar Converts a String tuple to FormVar
Produced by Haddock version 2.3.0