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