http-server-1: A library fro writing Haskell web servers.Source codeContentsIndex
Network.HTTP.Server.HtmlForm
Portability
Stabilityprovisional
Maintainerdiatchki@galois.com
Description
Synopsis
data FormFields
fieldNames :: FormFields -> [String]
hasField :: FormFields -> String -> Bool
lookupString :: FormFields -> String -> Maybe String
lookupRead :: Read a => FormFields -> String -> Maybe a
toList :: FormFields -> [(String, String)]
fromRequest :: Request String -> Maybe FormFields
Documentation
data FormFields Source
An abstraction of a map mapping form fields to their values.
show/hide Instances
fieldNames :: FormFields -> [String]Source
The names of the fields that were posted.
hasField :: FormFields -> String -> BoolSource
Do we have the given field?
lookupString :: FormFields -> String -> Maybe StringSource
Lookup a field value as a string.
lookupRead :: Read a => FormFields -> String -> Maybe aSource
Lookup a field value and try to parse it.
toList :: FormFields -> [(String, String)]Source
The fields as pairs of strings.
fromRequest :: Request String -> Maybe FormFieldsSource
Try to parse the body of a request.
Produced by Haddock version 2.4.2