Module

Data.FormURLEncoded

Package
purescript-form-urlencoded
Repository
purescript-contrib/purescript-form-urlencoded

#FormURLEncoded Source

newtype FormURLEncoded

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

Constructors

Instances

#fromArray Source

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

Construct FormURLEncoded from an Array of key-value pairs.

#toArray Source

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

View FormURLEncoded as an Array of key-value pairs.

#encode Source

encode :: FormURLEncoded -> Maybe String

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

#decode Source

decode :: String -> Maybe FormURLEncoded

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