struct Launch::Route
- Launch::Route
- Struct
- Value
- Object
Defined in:
launch/router/route.crConstructors
Instance Method Summary
- #action : Symbol
- #action=(action : Symbol)
- #call(context)
- #constraints : Hash(String, Regex)
- #constraints=(constraints : Hash(String, Regex))
- #controller : String
- #controller=(controller : String)
- #handler : HTTP::Server::Context -> Nil
- #handler=(handler : HTTP::Server::Context -> _)
- #params
- #params=(params)
- #resource : String
- #resource=(resource : String)
- #scope : Launch::Router::Scope
- #scope=(scope : Launch::Router::Scope)
- #substitute_keys_in_path(params : Hash(String, String) | Nil = nil)
- #to_json
- #trail
- #valve : Symbol
- #valve=(valve : Symbol)
- #verb : String
- #verb=(verb : String)
Constructor Detail
def self.new(verb : String, resource : String, handler : HTTP::Server::Context -> , action : Symbol = :index, valve : Symbol = :web, scope : Router::Scope = Router::Scope.new, controller : String = "", constraints : Hash = {} of String => Regex)
#