class

Toro::Router

Inherits Reference < Object

Constructors

new(context : HTTP::Server::Context, path : Seg, inbox : Hash(Symbol, String))
Source
new(context : HTTP::Server::Context)
Source

Class methods

run(*args)
Source
run(*args, &)
Source

Instance methods

auth_header
Source
basic_auth
Source
call
Source
content_type(type)
Source
context
Source
delete?
Source
get?
Source
head?
Source
header(name, value)
Source
inbox
Source
json(response)
Source
on?(cond : Bool)
Source
on?(str : String)
Source
on?(sym : Symbol)
Source
options?
Source
patch?
Source
path
Source
post?
Source
put?
Source
redirect(url)
Source
root?
Source
routes
Source
status(code)
Source
status
Source
text(str)
Source
write(str)
Source

Macros

default
Source
delete
Source
head
Source
html(template)
Source
mount(app)
Source
on(matcher)
Source
options
Source
patch
Source
post
Source
render(template)
Source
root
Source