https://github.com/zudov/purescript-form-urlencoded
https://github.com/zudov/purescript-form-urlencoded
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zudov/purescript-form-urlencoded
- Owner: zudov
- License: bsd-3-clause
- Created: 2016-02-10T12:55:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-17T17:22:19.000Z (almost 10 years ago)
- Last Synced: 2025-02-06T08:45:38.587Z (over 1 year ago)
- Language: PureScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# purescript-form-urlencoded
[](http://pursuit.purescript.org/packages/purescript-form-urlencoded)
[](https://github.com/purescript-contrib/purescript-form-urlencoded/releases)
[](https://travis-ci.org/purescript-contrib/purescript-form-urlencoded)
[](https://github.com/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][Pursuit].
[Pursuit]: https://pursuit.purescript.org/packages/purescript-form-urlencoded
Example:
```haskell
> 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!"
```