Module

Data.FormURLEncoded

#FormURLEncoded

newtype FormURLEncoded

FormURLEncoded is an ordered list of key-value pairs with possible duplicates.

Constructors

Instances

#fromArray

fromArray :: Array (Tuple String (Maybe String)) -> FormURLEncoded

Construct FormURLEncoded from an Array of key-value pairs.

#toArray

toArray :: FormURLEncoded -> Array (Tuple String (Maybe String))

View FormURLEncoded as an Array of key-value pairs.

#encode

encode :: FormURLEncoded -> Maybe String

Encode FormURLEncoded as application/x-www-form-urlencoded.

#decode

decode :: String -> Maybe FormURLEncoded

Decode FormURLEncoded from application/x-www-form-urlencoded.

Modules