abstract class Toro::Router
- Toro::Router
- Reference
- Object
Defined in:
toro.crConstructors
Class Method Summary
- .call(context : HTTP::Server::Context, path : Seg)
- .call(context : HTTP::Server::Context)
- .run(port = 8080)
Instance Method Summary
- #auth_header
- #basic_auth(&)
- #call
- #context : HTTP::Server::Context
- #delete(&)
- #delete?
- #get(&)
- #get?
- #head(&)
- #head?
- #inbox : Hash(Symbol, String)
- #on?(cond : Bool)
- #on?(str : String)
- #on?(sym : Symbol)
- #options(&)
- #options?
- #patch(&)
- #patch?
- #path : Seg
- #post(&)
- #post?
- #put(&)
- #put?
- #root?
- #routes
Macro Summary
- content_type(type)
- default
- header(name, value)
- html(template)
- mount(app)
- on(matcher)
- redirect(url)
- render(template)
- root
- status
- status(code)
- text(str)
- write(str)