class Raze::Stack

Defined in:

raze/stack.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(handlers : Array(Raze::Handler), &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def self.new(handlers : Array(Raze::Handler)) #

[View source]
def self.new(&block : HTTP::Server::Context -> ContextTypes) #

[View source]
def self.new(*handlers, &block : HTTP::Server::Context -> ContextTypes) #

[View source]
def self.new(*handlers) #

[View source]

Instance Method Detail

def add_sub_tree(stack, node, method, path) #

[View source]
def block : HTTP::Server::Context -> Bool | HTTP::Server::Context | Int32 | Int64 | String | Nil? #

[View source]
def block? #

[View source]
def concat(stack : Raze::Stack) #

combines stacks of with matching paths


[View source]
def middlewares : Array(Raze::Handler) #

[View source]
def next(index, ctx : HTTP::Server::Context) #

[View source]
def run(ctx : HTTP::Server::Context) #

[View source]
def 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


[View source]
def 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


[View source]
def tree? #

[View source]