module Tilde_uri: sig .. end
tilde:// URI validator
type t
A valid tilde:// URI
val of_uri : Uri.t -> [ `Error of string | `Ok of t ]
of_uri uri validates uri as a tilde:// URI or returns
an error.
val to_uri : t -> Uri.t
to_uri uri returns an Uri.t corresponding to tilde:// URI
uri.
val of_string : string -> [ `Error of string | `Ok of t ]
of_string str converts string str to a tilde:// URI.
val to_string : t -> string
to_string uri converts the tilde:// URI uri to a string.
val pp : Format.formatter -> t -> unit
pp fmt uri pretty-prints the tilde:// URI uri.
val make : domain:string ->
path:string -> public_key:string -> [ `Error of string | `Ok of t ]
make ~domain ~path ~public_key creates a tilde:// URI from
its components.
val domain : t -> string
domain uri returns the domain, extracted from uri.
val path : t -> string
path uri returns the path, extracted from uri.
val public_key : t -> string
public_key uri returns the Curve25519 public key in raw form,
extracted from uri.