class Grip::Handlers::Pipeline

Defined in:

grip/handlers/pipeline.cr

Constant Summary

CACHED_PIPES = {} of Array(Symbol) => Array(Middleware::Base)

Constructors

Instance Method Summary

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) #

[View source]

Instance Method Detail

def add_pipe(valve : Symbol, pipe : ::HTTP::Handler, http_handler : ::HTTP::Handler | Nil = nil, websocket_handler : ::HTTP::Handler | Nil = nil) : Nil #

[View source]
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 #

[View source]
def call(context : ::HTTP::Server::Context) #

[View source]
def find_route(verb : String, path : String) : Radix::Result(Route) #

[View source]
def get(valve : Symbol) : Array(Middleware::Base) | Nil #

[View source]
def get(valves : Array(Symbol)) : Array(Middleware::Base) #

[View source]
def get(valve : Nil) : Nil #

[View source]
def http_handler : ::HTTP::Handler | Nil #

[View source]
def http_handler=(http_handler : ::HTTP::Handler | Nil) #

[View source]
def match_via_http(context : ::HTTP::Server::Context) : Bool #

[View source]
def match_via_websocket(context : ::HTTP::Server::Context) : Bool #

[View source]
def pipeline : Hash(Symbol, Array(Middleware::Base)) #

[View source]
def pipeline=(pipeline : Hash(Symbol, Array(Middleware::Base))) #

[View source]
def websocket_handler : ::HTTP::Handler | Nil #

[View source]
def websocket_handler=(websocket_handler : ::HTTP::Handler | Nil) #

[View source]