Liking cljdoc? Tell your friends :D

Map Tree Router

Motivation

Many Pedestal-based services do not leverage every routing feature. The Map Tree router is optimized for the static routes use case.

Why use it?

Routes requests in constant time (path matching is done by map lookup).

How to use it?

Set the key :router in the connector-map.adoc to the value :map-tree.

Caveats

If the routes provided have any path parameters or wildcards, the prefix-tree-router.adoc will be used instead.

Additional Notes

Like the prefix-tree-router.adoc, query and path constraints are not used in routing decisions. They are only used to invalidate a route match.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close