struct
Grip::Handlers::Route
- Grip::Handlers::Route
- Struct
- Value
- Object
Defined in:
grip/handlers/route.crConstant Summary
-
EMPTY_VIA =
[] of Symbol -
Pre-computed empty array to avoid allocations
Constructors
Instance Method Summary
- #execute_override(context : ::HTTP::Server::Context) : ::HTTP::Server::Context
- #handler : ::HTTP::Handler
-
#has_override? : Bool
Pre-computed flags for fast path decisions
- #has_pipeline? : Bool
- #is_static? : Bool
- #method : String
- #override : Proc(::HTTP::Server::Context, ::HTTP::Server::Context) | Nil
- #path : String
- #process_pipeline(context : ::HTTP::Server::Context, pipeline_handler : Grip::Handlers::Pipeline) : ::HTTP::Server::Context
- #via : Array(Symbol)
Constructor Detail
def self.new(method : String, path : String, handler : ::HTTP::Handler, via : Symbol | Array(Symbol) | Nil = nil, override : Proc(::HTTP::Server::Context, ::HTTP::Server::Context) | Nil = nil)
#
Instance Method Detail
def process_pipeline(context : ::HTTP::Server::Context, pipeline_handler : Grip::Handlers::Pipeline) : ::HTTP::Server::Context
#