class WebSocket::HTTP::Response
Constants
- STATUS_LINE
Attributes
Public Instance Methods
Source
# File lib/websocket/http/response.rb, line 11 def [](name) @headers[HTTP.normalize_header(name)] end
Private Instance Methods
Source
# File lib/websocket/http/response.rb, line 21 def start_line(line) return false unless parsed = line.scan(STATUS_LINE).first @code = parsed[1].to_i true end