avsm/ocaml-uri — pull request #10 by dsheets (2012-09-16 09:22:52+00:00)
Title: Query String parsing bugfixes/conventions, alphabets

These commits contain several new tests for bugs and associated code for correctly parsing query strings.

Query string syntax is not standard, but conventionally uses '=' to separate keys and values and '&' to separate pairs. This patch fixes ambiguities in encoding/decoding these characters and representing key-only parameters. To do this, the type of the query field has to change to something with both empty string ("?key=") and zero ("?key"). I chose string list and then split the value on commas but string option could also be used.

The scheme alphabet has also been fixed.