Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Js_of_ocaml.Url
This module provides functions for tampering with Url. It's main goal is to allow one to stay in the Ocaml realm without wandering into the Dom_html.window##.location object.
The first functions are mainly from and to string conversion functions for the different parts of a url.
val urldecode : string -> string
urldecode s swaps percent encoding characters for their usual representation.
val urlencode : ?with_plus:bool ->string -> string
urlencode ?with_plus s replace characters for their percent encoding representation. Note that the '/' (slash) character is escaped as well. If with_plus is true (default) then '+''s are escaped as "%2B". If not, '+''s are left as is.
string_of_url u returns a valid string representation of u. Note that * string_of_url ((fun Some u -> u) (url_of_string s)) is NOT necessarily * equal to s. However url_of_string (string_of_url u) = u.