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. | `Scheme
  7. | `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
val encoded_of_query : (string * string) list -> string
val query_of_encoded : string -> (string * string) list
val with_query : t -> (string * string) list -> t
val add_query_param : t -> (string * string) -> t
val add_query_params : t -> (string * string) list -> t
val make : ?scheme:string -> ?userinfo:string -> ?host:string -> ?port:int -> ?path:string -> ?query:(string * string) list -> ?fragment:string -> unit -> t
val path : t -> string
val path_and_query : t -> string
val scheme : t -> string option
val userinfo : t -> string option
val host : t -> string option
val host_with_default : ?default:string -> t -> string
val port : t -> int option
val fragment : t -> string option
OCaml

Innovation. Community. Security.