package iri

  1. Overview
  2. Docs

Module Iri_typesSource

Sourcetype path =
  1. | Absolute of string list
  2. | Relative of string list
Sourcemodule KV : Map.S with type key = string
Sourcetype query_kv = string KV.t
Sourcetype t = {
  1. scheme : string;
  2. user : string option;
  3. host : string option;
  4. port : int option;
  5. path : path;
  6. query : string option;
  7. fragment : string option;
  8. mutable query_kv : query_kv option;
}
Sourcetype error =
  1. | Parse_error of string * exn
Sourceexception Error of error
Sourceval is_absolute : t -> bool
Sourceval is_relative : t -> bool
Sourceval utf8_nb_bytes_of_char : char -> int
Sourceval is_ucschar : Uchar.t -> bool
Sourceval is_iprivate : Uchar.t -> bool
Sourceval pct_decode : string -> string
Sourceval safe_chars : bool array
Sourceval from_safe_chars : ?f:(Uchar.t -> bool) -> bool array -> Uchar.t -> bool
Sourceval scheme_safe_chars : bool array
Sourceval scheme_safe_char : Uchar.t -> bool
Sourceval sub_delims : char array
Sourceval user_safe_chars : bool array
Sourceval user_safe_char : Uchar.t -> bool
Sourceval host_safe_chars : bool array
Sourceval host_safe_char : Uchar.t -> bool
Sourceval path_safe_chars : bool array
Sourceval path_safe_char : Uchar.t -> bool
Sourceval query_part_safe_chars : bool array
Sourceval query_part_safe_char : Uchar.t -> bool
Sourceval fragment_safe_chars : bool array
Sourceval fragment_safe_char : Uchar.t -> bool
Sourceval pct_encode_utf8 : Buffer.t -> Uchar.t -> unit
Sourceval pct_encode_b : Buffer.t -> (Uchar.t -> bool) -> string -> unit
Sourceval pct_encode : (Uchar.t -> bool) -> string -> string
Sourceval pct_encode_query : string -> string
Sourceval path_string : ?pctencode:bool -> t -> string
Sourceval to_string : ?pctencode:bool -> t -> string
Sourceval to_string_details : t -> string
Sourceval pp : Format.formatter -> t -> unit
Sourceval pp_details : Format.formatter -> t -> unit
Sourceval map_opt : ('a -> 'b) -> 'a option -> 'b option
Sourceval utf8_split : (Uchar.t -> bool) -> string -> string list
Sourceval encode_query_string_part : string -> string
Sourceval split_query_string : string -> string KV.t
Sourceval split_query_opt : string option -> string KV.t
Sourceval query_string_of_kv : ?q:string -> string KV.t -> string
Sourceval query_string_of_kv_opt : string KV.t option -> string option
Sourceval iri : ?scheme:string -> ?user:string -> ?host:string -> ?port:int -> ?path:path -> ?query_kv:string KV.t -> ?query:string -> ?fragment:string -> unit -> t
Sourceval scheme : t -> string
Sourceval with_scheme : t -> string -> t
Sourceval user : t -> string option
Sourceval with_user : t -> string option -> t
Sourceval host : t -> string option
Sourceval with_host : t -> string option -> t
Sourceval port : t -> int option
Sourceval with_port : t -> int option -> t
Sourceval path : t -> path
Sourceval with_path : t -> path -> t
Sourceval append_path : t -> string list -> t
Sourceval query : t -> string option
Sourceval with_query : t -> string option -> t
Sourceval query_kv : t -> query_kv
Sourceval with_query_kv : t -> string KV.t -> t
Sourceval query_get : t -> KV.key -> string
Sourceval query_opt : t -> KV.key -> string option
Sourceval query_set : t -> KV.key -> string -> t
Sourceval fragment : t -> string option
Sourceval with_fragment : t -> string option -> t
Sourceval compare : ?normalize:bool -> t -> t -> int
Sourceval equal : ?normalize:bool -> t -> t -> bool
Sourceval normalize_path : string list -> string list
Sourceval path_remove_dot_segments : path -> path
Sourceval remove_dot_segments : t -> t
Sourceval normalize_host : string -> string
Sourceval normalize_port : t -> t
Sourceval normalize_case : t -> t
Sourceval normalize_nfkc : t -> t
Sourceval normalize : ?nfkc:bool -> t -> t
Sourceval to_uri : t -> string
OCaml

Innovation. Community. Security.