package wtr

  1. Overview
  2. Docs
Well Typed Router

Install

Dune Dependency

Authors

Maintainers

Sources

wtr-v2.0.0.tbz
sha256=6242f9bec932d49f41957a05b2ddd826f38ef05ed14d87737962585143cf02aa
sha512=960a8bc6dad6d40bb248f25ec1560993c14b52fb928542ed3b5dc72842413101492ca7e0a708448aa6f3207a7c201073782fe045964d6a398cf2a9051a865092

CHANGES.md.html

v2.0.0 2021-08-02

  • Convert assert based tests to ppx_expect tests

  • Split README.md mdx test from tests

  • BREAKING CHANGE: ppx {%wtr| /home/about |} now produces a function expecting a handler rather than a uri. Demos and tests have been updated to reflect this change.

  • BREAKING CHANGE: remove functions pp_uri and >-.

  • BREAKING CHANGE: create function now mandates [route list list] to create a router. Hopefully this should not cause much breakage since the %wtr ppx produces this value.

  • NEW : %wtr ppx now allows specifying HTTP methods along with the uri route. A new type meth has been added to represent all standard HTTP methods.

  • NEW : Add Wtr.pp_route, Wtr.pp_method' and Wtr.pp to pretty print a route, method and a router respectively.

v1.0.0 2021-05-11 UK

  • First release.