struct

Grip::Handlers::Route

Inherits Struct / Value / Object

Constants

EMPTY_VIA = [] of Symbol

Pre-computed empty array to avoid allocations

Constructors

new(method : String, path : String, handler : ::HTTP::Handler, via : Symbol | Array(Symbol) | Nil = nil, override : Proc(::HTTP::Server::Context, ::HTTP::Server::Context) | Nil = nil)
Source

Instance methods

execute_override(context : ::HTTP::Server::Context) : ::HTTP::Server::Context
Source
handler
Source
has_override?

Pre-computed flags for fast path decisions

Source
has_pipeline?
Source
is_static?
Source
method
Source
override
Source
path
Source
process_pipeline(context : ::HTTP::Server::Context, pipeline_handler : Grip::Handlers::Pipeline) : ::HTTP::Server::Context
Source