struct Noir::TreeSitterHttp4kExtractor::Route

Defined in:

miniparsers/http4k_extractor_ts.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(verb : String, path : String, line : Int32, has_body : Bool, query_params : Array(String), header_params : Array(String), form_params : Array(String), callees : Array(Tuple(String, Int32))) #

[View source]

Instance Method Detail

def callees : Array(Tuple(String, Int32)) #

1-hop callees out of the handler expression. #path is filled in by the analyzer (the route extractor doesn't carry the file path); each tuple is (callee_name, line_1_based).


[View source]
def form_params : Array(String) #

[View source]
def has_body? : Bool #

[View source]
def header_params : Array(String) #

[View source]
def line : Int32 #

[View source]
def path : String #

[View source]
def query_params : Array(String) #

[View source]
def verb : String #

[View source]