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
- #content_type(type)
- #context : HTTP::Server::Context
- #delete(&)
- #delete?
- #get(&)
- #get?
- #head(&)
- #head?
- #header(name, value)
- #inbox : Hash(Symbol, String)
- #json(response)
- #on?(cond : Bool)
- #on?(str : String)
- #on?(sym : Symbol)
- #options(&)
- #options?
- #patch(&)
- #patch?
- #path : Seg
- #post(&)
- #post?
- #put(&)
- #put?
- #redirect(url)
- #root?
- #routes
- #status(code)
- #status
- #text(str)
- #write(str)