Class: Riddl::Protocols::WebSocket::ParserData

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby/riddl/protocols/websocket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



59
60
61
# File 'lib/ruby/riddl/protocols/websocket.rb', line 59

def body
  @body
end

#headersObject

Returns the value of attribute headers.



59
60
61
# File 'lib/ruby/riddl/protocols/websocket.rb', line 59

def headers
  @headers
end

#http_methodObject

Returns the value of attribute http_method.



59
60
61
# File 'lib/ruby/riddl/protocols/websocket.rb', line 59

def http_method
  @http_method
end

#query_stringObject

Returns the value of attribute query_string.



59
60
61
# File 'lib/ruby/riddl/protocols/websocket.rb', line 59

def query_string
  @query_string
end

#request_pathObject

Returns the value of attribute request_path.



59
60
61
# File 'lib/ruby/riddl/protocols/websocket.rb', line 59

def request_path
  @request_path
end

#request_urlObject

Returns the value of attribute request_url.



59
60
61
# File 'lib/ruby/riddl/protocols/websocket.rb', line 59

def request_url
  @request_url
end

Instance Method Details

#match(what) ⇒ Object



60
61
62
# File 'lib/ruby/riddl/protocols/websocket.rb', line 60

def match(what)
  @body =~ what 
end

#upgrade?Boolean

Returns:

  • (Boolean)


63
64
65
# File 'lib/ruby/riddl/protocols/websocket.rb', line 63

def upgrade?
  true
end