class Grip::Handlers::Pipeline
- Grip::Handlers::Pipeline
- Grip::Handlers::Base
- Reference
- Object
Defined in:
grip/handlers/pipeline.crConstant Summary
-
CACHED_PIPES =
{} of Array(Symbol) => Array(Middleware::Base)
Constructors
Instance Method Summary
- #add_pipe(valve : Symbol, pipe : ::HTTP::Handler, http_handler : ::HTTP::Handler | Nil = nil, websocket_handler : ::HTTP::Handler | Nil = nil) : Nil
- #add_route(verb : String, path : String, handler : ::HTTP::Handler, via : Symbol | Nil | Array(Symbol) | Nil = nil, override : Proc(::HTTP::Server::Context, ::HTTP::Server::Context) | Nil = nil) : Nil
- #call(context : ::HTTP::Server::Context)
- #find_route(verb : String, path : String) : Radix::Result(Route)
- #get(valve : Symbol) : Array(Middleware::Base) | Nil
- #get(valves : Array(Symbol)) : Array(Middleware::Base)
- #get(valve : Nil) : Nil
- #http_handler : ::HTTP::Handler | Nil
- #http_handler=(http_handler : ::HTTP::Handler | Nil)
- #match_via_http(context : ::HTTP::Server::Context) : Bool
- #match_via_websocket(context : ::HTTP::Server::Context) : Bool
- #pipeline : Hash(Symbol, Array(Middleware::Base))
- #pipeline=(pipeline : Hash(Symbol, Array(Middleware::Base)))
- #websocket_handler : ::HTTP::Handler | Nil
- #websocket_handler=(websocket_handler : ::HTTP::Handler | Nil)
Instance methods inherited from class Grip::Handlers::Base
add_route(verb : String, path : String, handler : HTTP::Handler, via : Symbol | Nil | Array(Symbol) | Nil, override : Proc(HTTP::Server::Context, HTTP::Server::Context) | Nil) : Nil
add_route,
call(context : HTTP::Server::Context)
call,
find_route(verb : String, path : String) : Radix::Result(Route)
find_route
Constructor Detail
def self.new(http_handler : ::HTTP::Handler | Nil = nil, websocket_handler : ::HTTP::Handler | Nil = nil)
#
Instance Method Detail
def add_pipe(valve : Symbol, pipe : ::HTTP::Handler, http_handler : ::HTTP::Handler | Nil = nil, websocket_handler : ::HTTP::Handler | Nil = nil) : Nil
#
def add_route(verb : String, path : String, handler : ::HTTP::Handler, via : Symbol | Nil | Array(Symbol) | Nil = nil, override : Proc(::HTTP::Server::Context, ::HTTP::Server::Context) | Nil = nil) : Nil
#