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.



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

def body
  @body
end

#headersObject

Returns the value of attribute headers.



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

def headers
  @headers
end

#http_methodObject

Returns the value of attribute http_method.



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

def http_method
  @http_method
end

#query_stringObject

Returns the value of attribute query_string.



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

def query_string
  @query_string
end

#request_pathObject

Returns the value of attribute request_path.



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

def request_path
  @request_path
end

#request_urlObject

Returns the value of attribute request_url.



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

def request_url
  @request_url
end

Instance Method Details

#match(what) ⇒ Object



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

def match(what)
  @body =~ what
end

#upgrade?Boolean

Returns:

  • (Boolean)


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

def upgrade?
  true
end