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 ->
tParameter query is %-encoded. Parameter query_kv is %-decoded.
val is_absolute : t -> booltrue if fragment is None and scheme is not empty.
val is_relative : t -> booltrue is scheme is empty.
IRI comparison. Optional parameter normalize indicates whether to normalize the IRIs to compare (default is false).
Equality. Optional parameter normalize indicates whether to normalize the IRIs to compare (default is false).
val of_string :
?pctdecode:bool ->
?pos:Lexing.position ->
?normalize:bool ->
string ->
tRead an IRI from the given string. Optional parameter normalize tells whether to normalize to IRI or not; default is false when IRI is relative (has no scheme) or true overwise. Optional parameter pctdecode tells whether to %-decode strings or not; default is true.
val to_string : ?pctencode:bool -> t -> stringReturn a string representation of the given IRI. Optional parameter pctencode is true by default.
val to_string_details : t -> stringReturn a debug purpose string representation of the given IRI.
val pp : Format.formatter -> t -> unitPrint the given IRI to the given formatter, using to_string ?pctencode:None.
val pp_details : Format.formatter -> t -> unitPrint a debug purpose representation of the given IRI to the given formatter, using to_string_details.
val scheme : t -> stringval user : t -> string optionval host : t -> string optionval port : t -> int optionval path_string : ?pctencode:bool -> t -> stringReturn the path of the given IRI as a string. Optional parameter encode indicates whether the path elements must be encoded; default is false.
Append 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 optionReturn the query string of the given IRI. The query string is not %-decoded as it is not parsed to name/value pairs.
Return the key/value pairs from the query string of the given IRI. Strings are %-decoded.
Return a new IRI which is the same as the given IRI but with the optional query string provided. This string must already be %-encoded.
with_query_kv iri kv returns a new IRI which is the same as the given iri but with the provided list of key/value pairs kv. The strings in kv must be %-decoded.
val query_get : t -> string -> stringval query_opt : t -> string -> string optionval fragment : t -> string optionresolve ~base iri resolves iri against the base IRI. Optional parameter normalize tells whether to apply normalization after resolution; default is true.
val parse_http_link : string -> (string * t) listval to_uri : t -> stringReturn a correctly pct-encoded URI as a string, from the given IRI.