class LuckyRouter::CompiledMatcher(T)

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(root : Fragment(T), *, static_index : Bool = true) #

[View source]

Instance Method Detail

def match(method : String, path : String) : Match(T) | Nil #

[View source]
def match!(method : String, path : String) : Match(T) #

[View source]
def match_payload(method : String, path : String) : T | Nil #

[View source]