Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
lucky_router
v0.3.0
LuckyRouter
Fragment
DynamicFragment
StaticPartName
Match
Matcher
HttpMethod
RoutePartsSize
MatchFinder
NoMatch
PartProcessor
Route
Built with Crystal 1.9.2
2023-10-08 06:58:25 UTC
struct
LuckyRouter::Route(T)
LuckyRouter::Route(T)
Struct
Value
Object
Defined in:
lucky_router/route.cr
Constructors
.new
(path : String, payload : T)
Instance Method Summary
#match?
(parts_to_match : Array(String))
#named_parts_with_indices
#path
#path_parts
#payload
Constructor Detail
def self.
new
(path : String, payload : T)
#
[
View source
]
Instance Method Detail
def
match?
(parts_to_match : Array(String))
#
[
View source
]
def
named_parts_with_indices
#
[
View source
]
def
path
#
[
View source
]
def
path_parts
#
[
View source
]
def
payload
#
[
View source
]