val host : stringThe host part of the current url.
val port : int optionThe port of the current url.
val protocol : stringThe protocol of the current url.
val path_string : stringThe path of the current url as one long string.
val path : string listThe path of the current url as a list of small string.
val arguments : (string * string) listThe arguments of the current url as an association list.
val get_fragment : unit -> stringBecause the fragment of the Url for the current document can change dynamically, we use a functional value here.
val set_fragment : string -> unitset_fragment s replaces the current fragment by s.
val get : unit -> url optionget () returns a value of type url with fields reflecting the state of the current Url.
val set : url -> unitset u replaces the current Url for u. WARNING: Causes the document to change.
val as_string : stringas_string is the original string representation of the current Url. It is NOT necessarily equals to string_of_url (get ()) but url_of_string as_string = get () holds.