module Current: sig
.. end
val host : string
val port : int option
val path_string : string
val path : string list
val arguments : (string * string) list
val get_fragment : unit -> string
Because the fragment
of the Url for the current document can change
dynamically, we use a functional value here.
val set_fragment : string -> unit
set_fragment s
replaces the current fragment by s
.
val get : unit -> Url.url option
get ()
returns a value of type
Url.url
with fields reflecting the
state of the current Url.
val set : Url.url -> unit
set u
replaces the current Url for u
. WARNING: Causes the document
to change.
val as_string : string
as_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.