class Grip::Handlers::WebSocket

Defined in:

grip/handlers/websocket.cr

Constant Summary

CACHE_LIMIT = 1024

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 #

[View source]

Instance Method Detail

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 cache : Hash(String, Radix::Result(Route)) #

[View source]

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

[View source]
def routes : Radix::Tree(Route) #

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

[View source]