class Grip::Routers::Http

Defined in:

grip/routers/http.cr

Constant Summary

CACHE_LIMIT = 1024

Constructors

Instance Method Summary

Instance methods inherited from class Grip::Routers::Base

add_route(method : String, path : String, handler : HTTP::Handler, via : Symbol | Nil | Array(Symbol) | Nil, override : Proc(HTTP::Server::Context, HTTP::Server::Context) | Nil) : Void add_route, call(context : HTTP::Server::Context) call, find_route(verb : String, path : String) : Radix::Result(Route) find_route

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add_route(method : String, path : String, handler : HTTP::Handler, via : Symbol | Nil | Array(Symbol) | Nil, override : Proc(HTTP::Server::Context, HTTP::Server::Context) | Nil) : Void #

[View source]
def cache : Hash(String, Radix::Result(Route)) #

[View source]
def cache=(cache : Hash(String, Radix::Result(Route))) #

[View source]
def call(context : HTTP::Server::Context) #

[View source]
def find_route(verb : String, path : String) : Radix::Result(Route) #

[View source]
def routes : Radix::Tree(Route) #

[View source]
def routes=(routes : Radix::Tree(Route)) #

[View source]