package sonet

  1. Overview
  2. Docs
type authority = {
  1. userinfo : string option;
  2. host : string;
  3. port : int option;
}
type scheme = string
type t = {
  1. scheme : scheme option;
  2. authority : authority option;
  3. path : string option;
  4. query : string option;
  5. fragment : string option;
}
type error =
  1. | Invalid_uri of string
  2. | Invalid_authority of string
  3. | Invalid_port of string
  4. | Missing_required_components of string
exception Uri_error of error
val string_of_error : error -> string
val of_string : string -> t
val to_string : t -> string
val abspath_to_string : t -> string
val authority_to_string : t -> string
val normalize : t -> t
OCaml

Innovation. Community. Security.