package uri

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
type component = [
  1. | `Authority
  2. | `Fragment
  3. | `Host
  4. | `Path
  5. | `Query
  6. | `Query_key
  7. | `Query_value
  8. | `Scheme
  9. | `Userinfo
]
val pct_encode : ?scheme:string -> ?component:component -> string -> string
val pct_decode : string -> string
val of_string : string -> t
val to_string : t -> string
val resolve : string -> t -> t -> t
val query : t -> (string * string list) list
val encoded_of_query : (string * string list) list -> string
val query_of_encoded : string -> (string * string list) list
val with_query : t -> (string * string list) list -> t
val with_query' : t -> (string * string) list -> t
val get_query_param' : t -> string -> string list option
val get_query_param : t -> string -> string option
val add_query_param : t -> (string * string list) -> t
val add_query_param' : t -> (string * string) -> t
val add_query_params : t -> (string * string list) list -> t
val add_query_params' : t -> (string * string) list -> t
val remove_query_param : t -> string -> t
val make : ?scheme:string -> ?userinfo:string -> ?host:string -> ?port:int -> ?path:string -> ?query:(string * string list) list -> ?fragment:string -> unit -> t
val path : t -> string
val path_and_query : t -> string
val with_path : t -> string -> t
val scheme : t -> string option
val userinfo : t -> string option
val host : t -> string option
val with_host : t -> string option -> t
val host_with_default : ?default:string -> t -> string
val port : t -> int option
val with_port : t -> int option -> t
val fragment : t -> string option
val with_fragment : t -> string option -> t
val pp_hum : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.