package routes

  1. Overview
  2. Docs
Typed routing for OCaml applications

Install

Dune Dependency

Authors

Maintainers

Sources

routes-0.5.0.tbz
sha256=d209a537921c30769b8c1875d473357a88918a3289ba00bcb77d4442990ade73
sha512=3ebade912f1589c97ee88c1b1a7c8e3c38b2ac41e4e3805b34e0843460ed14779f5e584ae885638976a6d4b4d5849ccb41c6712b238990a9f358ed669971e839

doc/CHANGES.html

0.5.0

  • Flatten nested skip-left actions.
  • Group routes based on the HTTP verb.
  • Use a trie based path matcher.
  • Add micro-benchmark suite.

0.4.2

  • Specialize apply for SkipLeft parsers.
  • Re-write routes for better matches.

0.4.1

  • Remove stdcompat (#33)
  • Add example using opium (#34)

0.4.0

  • Switch to using an applicative functor as parser. (#27)
  • Have a version of matching without HTTP methods. (#27)
  • Tokenize the path parameters into list of strings. (#27)
  • Add more tests for matchers. (#28)
  • s now returns the string it matches, instead of discarding it. (#29)

0.3.0

  • Extract string operations to its own module (#14)
  • Drop dependency on astring (#16)
  • Add pretty printers for utop (#18)
  • Accept a request that is in-turn forwarded to handlers (#22)
  • Use mdx to test examples in the readme file (#23)

0.2.0

  • Switched to a GADT representation of routes
  • Add support for using the same route type for both parsing and a sprintf like function

0.1.0

  • Initial version of router
OCaml

Innovation. Community. Security.