ocsigenserver
A full-featured and extensible Web server
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library ocsigenserver.baselib
include module type of Url_base with type t = Url_base.t
type t = Url_base.t
val join_path : path -> string
val split_path : string -> path
val parse :
t ->
bool option
* string option
* int option
* string
* string list
* string option
* (string * string) list Lazy.t
parse 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
string
without first '/' - path as
string list
- GET query of url
- lazy value to decode GET query
prefix_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"])
.