ReviewBoard-0.1: Haskell bindings to ReviewBoardSource codeContentsIndex
ReviewBoard.Browser
Portabilityportable
Stabilityexperimental
Maintaineradam.smyczek@gmail.com
Description

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

The package contains typed form variables FormVar and chooses the content type encryption based on this. If the form contains a FileUpload, multipart/form-data encryption is used. Otherwise the request falls back to the default Network.Browser encryption.

Synopsis
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
Documentation
data Form Source
Typed form
Constructors
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
Produced by Haddock version 2.3.0