struct
Noir::TreeSitterJvmLambdaDslExtractor::Config
- Noir::TreeSitterJvmLambdaDslExtractor::Config
- Struct
- Value
- Object
Defined in:
miniparsers/jvm_lambda_dsl_extractor_ts.crConstructors
Instance Method Summary
- #body_methods : Set(String)
- #body_typed_methods : Set(String)
- #cookie_methods : Set(String)
- #crud_methods : Set(String)
- #form_methods : Set(String)
- #handler_methods : Set(String)
- #header_methods : Set(String)
- #nest_methods : Set(String)
- #query_methods : Set(String)
-
#router_receivers : Set(String)
Receiver names (the
objectinrecv.get(...)) that mark a verb call as a genuine route registration even when it carries no functional handler argument. - #transparent_methods : Set(String)
- #verb_methods : Hash(String, String)
- #websocket_methods : Set(String)
Constructor Detail
def self.new(verb_methods : Hash(String, String), nest_methods : Set(String), handler_methods : Set(String) = Set(String).new, crud_methods : Set(String) = Set(String).new, transparent_methods : Set(String) = Set(String).new, query_methods : Set(String) = Set(String).new, form_methods : Set(String) = Set(String).new, header_methods : Set(String) = Set(String).new, cookie_methods : Set(String) = Set(String).new, body_methods : Set(String) = Set(String).new, body_typed_methods : Set(String) = Set(String).new, websocket_methods : Set(String) = Set(String).new, router_receivers : Set(String) = Set(String).new)
#
Instance Method Detail
Receiver names (the object in recv.get(...)) that mark a
verb call as a genuine route registration even when it carries
no functional handler argument. Spark's redirect API
(redirect.get("/from", "/to")) is the canonical case — its
arguments are all string literals, so without an explicit
allowlist it's indistinguishable from a colliding collection
call like map.put("k", "v"). Matched against the receiver's
last dotted segment, so both redirect.get(...) and
Spark.redirect.get(...) resolve to redirect.