package uritemplate

  1. Overview
  2. Docs
OCaml implementation of URI templates (RFC6570)

Install

Dune Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
md5=b3eec15514757084d33264808dbee138
sha512=b958b0d78b4723d210863c2d0b0abdbdcf227cdbabea4fc01de9b839db8063c2856982c736aaed5a2e32df7ad0c70e3f80ce791862eba77fa1a0bc7ffe017f29

README.md.html

uritemplate-ocaml

Work in progress implementation of URI templates for OCaml. (RFC6570 - http://tools.ietf.org/html/rfc6570)

Compliant to level 4

ODoc documentation avaliable here.

Install via opam

Easiest way to install is via opam:

$ opam install uritemplate

Usage

# #require "uritemplate";;

# Uritemplate.template_uri
    ~template:"https://example.com{/a}{?b*}{#e,f}"
    ~variables:[("a", `String "a");
                ("b", `Assoc [("b", "b"); ("c", "c")]);
                ("e", `String "e");
                ("f", `List ["f"; "g"])];;
- : string = "https://example.com/a?b=b&c=c#e,f,g"
OCaml

Innovation. Community. Security.