noss / wwwerl

This URL has Read+Write access

wwwerl /
name age message
file Makefile Loading commit data...
file README.textile
directory ebin/
directory src/
directory test/
README.textile

WWW support lib for Erlang.

Most of the Erlang web projects are “frameworks” that you need to buy in to completely. This project strives to be small and provide the functions needed for various www-related problems.

Features

Starting out small. The best place to find behaviour is reading the eunit based unit-tests inlined with the code.

Parser for application/x-form-urlencoded

GET query args support both & and ; as key-value separator.

{<<“/foo”>>, [{<<"x">>, <<"1">>}]} = wwwerl:q(“/foo?x=1”).

POST urlencoded data

[{<<"x">>, <<"1">>}, {<<"y">>, <<"2">>}] = wwwerl:p(“x=1&y=2”).

Percent-encoding unescaping

Percent-encoding

<<“Hello world!”>> = wwwerl:unescape(“Hello+world!”), <<“Hello world!”>> = wwwerl:unescape(“Hello%20world!”)

Tests

make test % runs the unit-tests