Module Ocsigen_lib.Url
include module type of Url_base with type t = Url_base.t
type t = Url_base.ttype uri = stringmake_absolute_url https host port path generates a new absolute url
type path = string listval remove_end_slash : string -> stringremove_end_slash str removes last /
val is_prefix_skip_end_slash : string list -> string list -> boolis_prefix_skip_end_slash path1 path2 returns true if path1 is the same as path2 before a first slash
val split_fragment : string -> string * string optionsplit_fragment str splits str at first '#'
val join_path : path -> stringval encode : ?plus:bool -> string -> stringval decode : ?plus:bool -> string -> stringval make_encoded_parameters : (string * string) list -> stringval parse :
t ->
bool option
* string option
* int option
* string
* string list
* string option
* (string * string) list Stdlib.Lazy.tparse url returns a tuple containing information about url
- If url contains scheme 'https'
- host of url (ex: http://www.ocsigen.org/ -> www.ocsigen.org)
- port of url
- path as
stringwithout first '/' - path as
string list - GET query of url
- lazy value to decode GET query
val prefix_and_path_of_t : string -> string * string listprefix_and_path_of_t url splits url in a couple (prefix, path) where prefix is "http(s)://host:port" and path is the path as string list
Example: prefix_and_path_of_t "http://ocsigen.org:80/tuto/manual" returns ("http://ocsigen.org:80", ["tuto", "manual"]).