struct Grip::Routers::Route
- Grip::Routers::Route
- Struct
- Value
- Object
Defined in:
grip/routers/route.crConstructors
Instance Method Summary
- #call_into_override(context : HTTP::Server::Context) : HTTP::Server::Context
- #handler : HTTP::Handler
- #handler=(handler : HTTP::Handler)
- #match_via_keyword(context : HTTP::Server::Context, pipeline_handler : Grip::Handlers::Pipeline) : HTTP::Server::Context
- #method : String
- #method=(method : String)
- #override : HTTP::Server::Context -> HTTP::Server::Context?
- #override=(override : Nil | HTTP::Server::Context -> HTTP::Server::Context)
- #path : String
- #path=(path : String)
- #via : Array(Symbol)
- #via=(via : Array(Symbol))
Constructor Detail
def self.new(method : String, path : String, handler : HTTP::Handler, via : Array(Symbol), override : Proc(HTTP::Server::Context, HTTP::Server::Context) | Nil)
#
Instance Method Detail
def match_via_keyword(context : HTTP::Server::Context, pipeline_handler : Grip::Handlers::Pipeline) : HTTP::Server::Context
#