Skip to content

Initial release

Choose a tag to compare

@francois-normandin francois-normandin released this 31 Dec 23:17
· 20 commits to master since this release

This is an initial release of the openURI library with basic support for handling RFC3986 Unique Resource Identifiers.
The palette exposes a set of URI composition and decomposition methods that act through regular expressions to manipulate the parts according to the norm.

Official terminology for URIs can be found at https://tools.ietf.org/html/rfc3986

From this example URI:
https://username:[email protected]:443/html/rfc3986?query=test&query2=test2#appendix-A

The library handles decomposition of URI into its basic components:

  • scheme (ex: https)
  • authority (ex: username:[email protected]:443)
  • path (ex: "html/rfc3986")
  • query (ex: "query=test&query2=test2")
  • fragment (ex: "#appendix-A")

Authority is further decomposable into:

  • userinfo (ex: "username:password")
  • host (ex: "tools.ietf.org")
  • port (ex: "443")

Query can further be decomposed into key-value pairs.

Planned future development includes:

  • validation of URIs
  • recognition of URN and URL specificities
  • class-based toolkit with a KVP (key-value pair) dictionary