package b0
Module B0_url.PercentSource
Percent-encoding codecs according to RFC 3986.
Note. This should not be used for URL query strings and application/x-www-form-urlencoded which is slightly different (welcome to the Web). The Webs.Http.Query module handles that.
type kind = [ | `Uri_component(*Percent-encodes anything but
*)unreservedand sub-delims URI characters. In other words only'a'..'z','A'..'Z','0'..'9','-','.','_','~'and'!','$','&','\'','(',')''*','+',',',';','='are not percent-encoded.| `Uri(*Percent-encodes like
*)`Uri_componentexcept it also preserves gen-delims URI characters. In other words in addition to those characters above,':','/','?','#','[',']','@'are not percent-encoded.
]The kind of percent encoding.
encode kind s is the percent encoding of s according to kind.
decode s is the percent decoding of s.