Module Http.Pct

Percent-encoding codec.

Codecs percent-encoding according to RFC 3986.

Note. This should not be used for URI query strings and application/x-www-form-urlencoded which is slightly different. The Query module handle that.

val encode : string -> string

encode s is the percent-encoding of s.

TODO. Make that more subtle for now we percent-encode what is not percent-encoded pchar in RFC 3986.

val decode : string -> string

decode s is the percent-encoding decode of s.