package routes

  1. Overview
  2. Docs
Typed routing for OCaml applications

Install

Dune Dependency

Authors

Maintainers

Sources

routes-0.5.1.tbz
sha256=c0e611514e2cfe8f600a2a49d04956d2e438eba984ac3beb6ed0f5a49482f970
sha512=397cc862a523debc6762a9b7fefa940582ca9a997cb46f3f067d6baf8ae4e140a6f40fa3efdb909df35a5d31b4dbd52fca6942ef32fd68c9d1c01ec5feb6256d

CHANGES.md.html

0.5.1

  • Allow user to decide if they want to keep or ignore trailing slash (#50)

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.