Module Webapi.Url

module URLSearchParams : sig ... end
type t
val make : string -> t
val makeWithBase : string -> string -> t

Deprecated, use makeWith instead.

  • deprecated Use [makeWith] instead.
val makeWith : string -> base:string -> t
  • since 0.19.0
val hash : t -> string
val setHash : t -> string -> unit
val host : t -> string
val setHost : t -> string -> unit
val hostname : t -> string
val setHostname : t -> string -> unit
val href : t -> string
val setHref : t -> string -> unit
val origin : t -> string
val password : t -> string
val setPassword : t -> string -> unit
val pathname : t -> string
val setPathname : t -> string -> unit
val port : t -> string
val setPort : t -> string -> unit
val protocol : t -> string
val setProtocol : t -> string -> unit
val setSearch : t -> string -> unit
val searchParams : t -> URLSearchParams.t
val username : t -> string
val setUsername : t -> string -> unit
val toJson : t -> string
val createObjectURL : Fetch.file -> string
val revokeObjectURL : string -> unit