package ocsigenserver
A full-featured and extensible Web server
Install
Dune Dependency
Authors
Maintainers
Sources
6.0.0.tar.gz
md5=001e22ec2da3ab08840f934a8f005859
sha512=59f36fdf0a640117aa562d1d9ef96b7146843d9b72d71d01366640521405550074e03267fb388c5e685542781fc4bce763818a36cf05c0e033fae5e51c2f1496
doc/ocsigenserver.baselib/Ocsigen_lib/Url/index.html
Module Ocsigen_lib.Url
Source
include module type of Url_base with type t = Url_base.t
type t = Url_base.t
make_absolute_url https host port path
generates a new absolute url
is_prefix_skip_end_slash path1 path2
returns true
if path1
is the same as path2
before a first slash
val join_path : path -> string
Source
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"])
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>