clojure.walk as routes navigation toolspec references to routecalfpath.route/compile-routes
:trie? to :tidy?:trie-threshold to :tidy-thresholdcalfpath.route/routes->wildcard-trie to routes->wildcard-tidyVolatileInt as a mutable container for index:path-params key in requestoptions argument in function calfpath.route/make-dispatcherif-some/when-some instead of if-let/when-let everywherecalfpath.route/assoc-spec-to-request to assoc-route-to-requestcalfpath.route/make-dispatcher and matchex optimization (JVM only)calfpath.route)
make-indexrealize-uritemplate->request:trie? and :trie-threshold in calfpath.route/compile-routescalfpath.MatchResult in favour of 2-element arraycalfpath.route/assoc-spec-to-request-middlewarecalfpath.route/prewalk-routes:full-uri kwarg in calfpath.route/compile-routes as reference keyparams-key instead of looking up route spec
params-key in calfpath.route/make-uri-matcher - no route spec lookupcalfpath.route/compile-routes
:split-params? and :uri-params-key:params-keyMatchResult.fullMatch() in favour of MatchResult.FULL_MATCH_NO_PARAMSUtil.matchURI()) to hold only as many params as likelycalfpath.route/make-routes to calfpath.route/compile-routes:uri-params <request-key> to route)
calfpath.route/make-uri-matcher arity - accept an extra argument uri-params-keylift-key-middleware accept lift-keys collection instead of single lift-keycalfpath.route/compile-routes
:uri-params-key to find out where to place URI params in the request map:uri-params-val to specify where to place URI params in the request map:split-params? to determine whether to split URI params under a separate key in request map:trailing-slash to specify action to perform with trailing slash (:add or :remove) to URI patternsconj bug in Aleph (0.4.4) and Immutant (2.1.10) requests
identical? instead of =calfpath.route/assoc-kv-middleware - associate key/value pairs corresponding to a main key in a routecalfpath.route/trailing-slash-middleware - drop or add trailing slash to non-partial URI matchersnilring-handler-middleware* suffixcalfpath.route/update-in-each-route to apply route attribute wrapper to specscalfpath.route/lift-key-middleware to split routes with mixed specscalfpath.route/ring-handler-middleware to wrap Ring handlers into route handlerscalfpath.route/make-routes to build routes from given route specscalfpath.core/->uricalfpath.route/update-fallback-400 to add fallback 400 route on one or more URI entry, instead of allcalfpath.core/make-uri-handler in favor of Calfpath routesPATCH HTTP methodCan you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |