Class: Riddl::Protocols::WebSocket::ParserData
- Inherits:
-
Object
- Object
- Riddl::Protocols::WebSocket::ParserData
- Defined in:
- lib/ruby/riddl/protocols/websocket.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#http_method ⇒ Object
Returns the value of attribute http_method.
-
#query_string ⇒ Object
Returns the value of attribute query_string.
-
#request_path ⇒ Object
Returns the value of attribute request_path.
-
#request_url ⇒ Object
Returns the value of attribute request_url.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
60 61 62 |
# File 'lib/ruby/riddl/protocols/websocket.rb', line 60 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
60 61 62 |
# File 'lib/ruby/riddl/protocols/websocket.rb', line 60 def headers @headers end |
#http_method ⇒ Object
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_string ⇒ Object
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_path ⇒ Object
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_url ⇒ Object
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
64 65 66 |
# File 'lib/ruby/riddl/protocols/websocket.rb', line 64 def upgrade? true end |