package uri

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Specializations for HTTP and HTTPS schemes as per RFC9110

type uri := t
type t
val of_uri : uri -> (t, [ `Msg of string ]) Stdlib.result
val to_uri : t -> uri
val of_string : string -> t
val to_string : ?pct_encoder:pct_encoder -> t -> string
val make : scheme:[ `Http | `Https ] -> host:string -> ?userinfo:string -> ?port:int -> ?path:string -> ?query:(string * string list) list -> ?fragment:string -> unit -> t
val host : t -> string
val scheme : t -> [ `Http | `Https ]