Package

purescript-form-urlencoded

Repository
purescript-contrib/purescript-form-urlencoded
License
BSD-3-Clause
Uploaded by
paf31

Documentation Latest release Build Status Maintainer: zudov

A FormURLEncoded datatype represents an ordered list of key-value pairs with possible duplicates. encode function allows to transform FormURLEncoded into a string according to application/x-www-form-urlencoded.

Documentation is available on Pursuit.

Example:

> import Data.FormURLEncoded (fromArray, encode)
> import Data.Maybe (Maybe(..))
> import Data.Tuple (Tuple(..))

> encode (fromArray [ Tuple "hey" Nothing
>                   , Tuple "Oh" (Just "Let's go!")
>                   ])
"hey&Oh=Let's%20go!"