Module: WebSocket::HTTP

Defined in:
lib/websocket/http.rb,
lib/websocket/http/headers.rb,
lib/websocket/http/request.rb,
lib/websocket/http/response.rb

Defined Under Namespace

Modules: Headers Classes: Request, Response

Class Method Summary collapse

Class Method Details

.normalize_header(name) ⇒ Object


10
11
12
# File 'lib/websocket/http.rb', line 10

def self.normalize_header(name)
  name.to_s.strip.downcase.gsub(/^http_/, '').gsub(/_/, '-')
end