class
LuckyRouter::CompiledMatcher(T)
- LuckyRouter::CompiledMatcher(T)
- Reference
- Object
Overview
An opt-in snapshot for applications that finish registering routes before serving requests. Recompile after changing the original Matcher or its trie. Payload objects themselves are retained, rather than deep-copied.
Defined in:
lucky_router/compiled_matcher.crConstructors
Instance Method Summary
- #match(method : String, path : String) : Match(T) | Nil
- #match!(method : String, path : String) : Match(T)
- #match_payload(method : String, path : String) : T | Nil