class Raze::Stack
- Raze::Stack
- Reference
- Object
Defined in:
raze/stack.crConstructors
- .new(handlers : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes)
- .new(handlers : Array(Raze::Handler))
- .new(&block : HTTP::Server::Context -> ContextTypes)
- .new(*handlers, &block : HTTP::Server::Context -> ContextTypes)
- .new(*handlers)
Instance Method Summary
- #add_sub_tree(stack, node, method, path)
- #block : HTTP::Server::Context -> Bool | HTTP::Server::Context | Int32 | Int64 | String | Nil?
- #block?
-
#concat(stack : Raze::Stack)
combines stacks of with matching paths
- #middlewares : Array(Raze::Handler)
- #next(index, ctx : HTTP::Server::Context)
- #run(ctx : HTTP::Server::Context)
-
#tree : Raze::Radix(Raze::Stack) | Nil
A sub tree is used in case this stack is indexed using a wildcard For example, if there is one stack at the path "/hel**" and another at the path "/hello", the latter would be in the subtree of the first
-
#tree=(tree : Raze::Radix(Raze::Stack) | Nil)
A sub tree is used in case this stack is indexed using a wildcard For example, if there is one stack at the path "/hel**" and another at the path "/hello", the latter would be in the subtree of the first
- #tree?
Constructor Detail
Instance Method Detail
A sub tree is used in case this stack is indexed using a wildcard For example, if there is one stack at the path "/hel**" and another at the path "/hello", the latter would be in the subtree of the first
A sub tree is used in case this stack is indexed using a wildcard For example, if there is one stack at the path "/hel**" and another at the path "/hello", the latter would be in the subtree of the first