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

Description

Tags

uri url templates RFC6570

Published: 30 Jun 2019

README

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"

Dependencies (3)

  1. stdcompat >= "5"
  2. dune
  3. ocaml

Dev Dependencies (3)

  1. odoc with-doc
  2. atdgen with-test
  3. ounit with-test

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.