package uri
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=a7ab6aa44232e03317b0db2ea200f422587bf801540755896ad30d17d8b682a8
md5=2fb8da55f99a529bcb211a1d99822419
doc/uri.services/Uri_services/index.html
Module Uri_services
Module that maps the more common IANA well-known ports to and from their textual service names. To save memory, this module does not contains only the more common services. Use the Uri_services_full
module if you need the complete list.
Convert a TCP port number into a list of IANA well-known service names
Convert a UDP port number into a list of IANA well-known service names
Convert a IANA well-known service name into a list of valid TCP port numbers
Convert a IANA well-known service name into a list of valid UDP port numbers
val tcp_port_of_uri : ?default:string -> Uri.t -> int option
Extract a TCP port from a URI, using a default service if the URI does not contain a scheme
val udp_port_of_uri : ?default:string -> Uri.t -> int option
Extract a UDP port from a URI, using a default service if the URI does not contain a scheme
List of known TCP services. These keys are guaranteed to match in the rest of the lookup functions.
List of known UDP services. These keys are guaranteed to match in the rest of the lookup functions.