abstract class Toro::Router

Defined in:

toro.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(context : HTTP::Server::Context, path : Seg, inbox : Hash(Symbol, String)) #

[View source]
def self.new(context : HTTP::Server::Context) #

[View source]

Class Method Detail

def self.run(*args) #

[View source]
def self.run(*args, &) #

[View source]

Instance Method Detail

def auth_header #

[View source]
def basic_auth(&) #

[View source]
def call #

[View source]
def content_type(type) #

[View source]
def context : HTTP::Server::Context #

[View source]
def delete? #

[View source]
def get? #

[View source]
def head? #

[View source]
def header(name, value) #

[View source]
def inbox : Hash(Symbol, String) #

[View source]
def json(response) #

[View source]
def on?(cond : Bool) #

[View source]
def on?(str : String) #

[View source]
def on?(sym : Symbol) #

[View source]
def options? #

[View source]
def patch? #

[View source]
def path : Seg #

[View source]
def post? #

[View source]
def put? #

[View source]
def redirect(url) #

[View source]
def root? #

[View source]
abstract def routes #

[View source]
def status(code) #

[View source]
def status #

[View source]
def text(str) #

[View source]
def write(str) #

[View source]

Macro Detail

macro default #

[View source]
macro delete #

[View source]
macro get #

[View source]
macro head #

[View source]
macro html(template) #

[View source]
macro mount(app) #

[View source]
macro on(matcher) #

[View source]
macro options #

[View source]
macro patch #

[View source]
macro post #

[View source]
macro put #

[View source]
macro render(template) #

[View source]
macro root #

[View source]