Module Url

module Url: sig .. end
Uniform Resource Locator


Most of this is taken from RFC1808. See: http://tools.ietf.org/html/rfc1808
val debug : bool
type t = {
   scheme : string;
   net_loc : string;
   path : string;
   params : string;
   query : string;
}
The type for a (parsed) URL
val empty : t
val is_empty : t -> bool
val is_in_set : string -> char -> bool
val reserved_chars : string
val unreseved_chars : string
val is_reserved : char -> bool
val is_unreserved : char -> bool
val decode : string -> string
decode str will decode every URL encoded char present in str
val char_encode : char -> string
val encode : ?reserved:bool -> string -> string
encode str will encode any reserved char present in str into the alternative %xx syntax.
val of_string : ?force_absolute:bool -> string -> t
Url.of_string str will return the Url.t corresponding to the given str
val to_string : t -> string
the opposite of of_string
val dotslash_re : Str.regexp
val updir_re : Str.regexp
val resolve : t -> t -> t
resolve base url will return the absolute version of url, given it's relative to base.