package uritemplate

Not available on OCaml 5.5
  1. Overview
  2. Docs
OCaml implementation of URI templates (RFC6570)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
md5=b3eec15514757084d33264808dbee138
sha512=b958b0d78b4723d210863c2d0b0abdbdcf227cdbabea4fc01de9b839db8063c2856982c736aaed5a2e32df7ad0c70e3f80ce791862eba77fa1a0bc7ffe017f29

Description

Tags

uri url templates RFC6570

Added to opam-repository:

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 >= "1.2"
  3. ocaml

Dev Dependencies (3)

  1. odoc with-doc
  2. atdgen with-test >= "2.0.0" & < "2.16.0"
  3. ounit with-test

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building uritemplate with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.2.0 (this version) good n/a good n/a n/a
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure