package uri

  1. Overview
  2. Docs
An RFC3986 URI/URL parsing library

Install

Dune Dependency

Authors

Maintainers

Sources

uri-4.4.0.tbz
sha256=cdabaf6ef5cd2161e59cc7b74c6e4a68ecb80a9f4e96002e338e1b6bf17adec4
sha512=88374143e0d8aaf6d40aa3cbd7593f9832e9c9727738c6e651498125150c83d5646e13b5737d5c3e81484dd041127f67f8acea13fdc0300ac4e46107559f8ae2

doc/uri.services_full/Uri_services_full/index.html

Module Uri_services_fullSource

Module that maps the IANA well-known ports to and from their textual service names

Sourceval service_of_tcp_port : int -> string list

Convert a TCP port number into a list of IANA well-known service names

Sourceval service_of_udp_port : int -> string list

Convert a UDP port number into a list of IANA well-known service names

Sourceval tcp_port_of_service : string -> int list

Convert a IANA well-known service name into a list of valid TCP port numbers

Sourceval udp_port_of_service : string -> int list

Convert a IANA well-known service name into a list of valid UDP port numbers

Sourceval 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

Sourceval 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

Sourceval known_tcp_services : string list

List of known TCP services. These keys are guaranteed to match in the rest of the lookup functions.

Sourceval known_udp_services : string list

List of known UDP services. These keys are guaranteed to match in the rest of the lookup functions.

Sourceval known_services : (string * string list) list

Association list of protocol * service list. Usually populated with at least "tcp" and "udp" keys for those respective protocols.

OCaml

Innovation. Community. Security.