uri-re
This is an OCaml implementation of the RFC3986 specification
for parsing URI or URLs.
Installation
Via OPAM
The OPAM package manager can be used to install this library from source.
opam install uri
Locally
You can build the source code locally via the dune
build system.
opam install uri --deps-only
eval `opam config env`
dune build
dune runtest
will install the dependencies via OPAM, build the library and then run the tests in the lib_test/ directory.
Usage
Once installed, there are three ocamlfind packages available for your use:
uri
- the baseUri
moduleuri-re
- the legacy implementation
At the beginning,uri
usedre
to parse astring
. Since 4.0.0,
we useangstrom
- if something breaks withuri.4.0.0
, you should compare
withuri-re
and submit an issue.uri-re
is deprecated and it will be
removed on the next release (see #150)uri.top
- the toplevel printers for use with utopuri-sexp
- provides converters to and from s-expressions (via aUri_sexp.t
type alias)uri.services
- theUri_services
module that provides the equivalent of services(5)uri.services_full
- theUri_services_full
module that provides a complete copy of the/etc/services
file. This is quite large and normally not needed.
Contact
API Documentation: http://docs.mirage.io/uri/
sha256=c5c013d940dbb6731ea2ee75c2bf991d3435149c3f3659ec2e55476f5473f16b
sha512=119e39bf53db9e94383a4e3a3df492b60b2db097266b3a8660de431ad85bc87997718305972fd2abbfb529973475ce6b210ba5e34d12e85a5dabbb0e24130aa1
>= "1.4.0"
>= "1.9.0"
with-test & >= "v0.9.0"
with-test & >= "1.0.2"
>= "1.2.0"
>= "4.04.0"