Page
Library
Module
Module type
Parameter
Class
Class type
Source
Iriexception Error of errorval string_of_error : error -> stringtype query_kv = string KV.tval iri :
?scheme:string ->
?user:string ->
?host:string ->
?port:int ->
?path:path ->
?query_kv:query_kv ->
?query:string ->
?fragment:string ->
unit ->
tval is_absolute : t -> booltrue if fragment is None and scheme is not empty.
val is_relative : t -> booltrue is scheme is empty.
val of_string :
?pctdecode:bool ->
?pos:Lexing.position ->
?normalize:bool ->
string ->
tRead an IRI from the given string.
val to_string : ?pctencode:bool -> t -> stringval scheme : t -> stringval user : t -> string optionval host : t -> string optionval port : t -> int optionval path_string : ?pctencode:bool -> t -> stringAppend the given (not %-encoded) string list to the path of the given iri and return a new iri with this path.
val query : t -> string optionQuery string is not %-decoded as it is not parsed to name/value pairs
Return a new iri with the given optional query string. This string must already be %-encoded.
Return a new iri with the given list of key/value pairs. The givn string must be %-decoded.
val query_get : t -> string -> stringval query_opt : t -> string -> string optionval fragment : t -> string optionval parse_http_link : string -> (string * t) listval to_uri : t -> stringReturn a correctly pct-encoded URI as a string, from the given IRI.