class

Raze::Stack

Inherits Reference < Object

Constructors

new(handlers : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes)
Source
new(handlers : Array(Raze::Handler))
Source
new(*handlers, &block : HTTP::Server::Context -> ContextTypes)
Source
new(*handlers)
Source

Instance methods

add_sub_tree(stack, node, method, path)
Source
block
Source
block?
Source
concat(stack : Raze::Stack)

combines stacks of with matching paths

Source
middlewares
Source
next(index, ctx : HTTP::Server::Context)
Source
run(ctx : HTTP::Server::Context)
Source
tree

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

Source
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

Source
tree?
Source

Nested types