class
Analyzer::Clojure::Ring
- Analyzer::Clojure::Ring
- Analyzer
- Reference
- Object
Overview
Generic Ring handler analyzer — extracts endpoints from Clojure code that
dispatches directly on (:uri request) / (:request-method request) via
case, condp, or cond, without going through Compojure's routing macros.
Defined in:
analyzer/analyzers/clojure/ring.crConstant Summary
-
CLOJURE_EXTENSIONS =
{".clj", ".cljc", ".cljs"} -
METHOD_KEYWORDS =
{"get" => "GET", "post" => "POST", "put" => "PUT", "delete" => "DELETE", "patch" => "PATCH", "head" => "HEAD", "options" => "OPTIONS", "any" => "ANY"} -
RING_EXCLUDE_RE =
Regex.union("compojure.core", "defroutes") -
Whole-file detection gates, evaluated once per candidate file.
String#matches?(PCRE2 JIT) replaces the naiveString#includes?char scans with a single pass;Regex.unionauto-escapes each literal, so each is provably equivalent to the OR-of-substrings it replaces. -
RING_SIGNAL_RE =
Regex.union(":request-method", ":uri")