Class: Reel::RequestInfo
- Inherits:
-
Object
- Object
- Reel::RequestInfo
- Defined in:
- lib/reel/request_info.rb
Constant Summary collapse
- UPGRADE =
'Upgrade'.freeze
- WEBSOCKET =
'websocket'.freeze
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#http_method ⇒ Object
readonly
Returns the value of attribute http_method.
-
#http_version ⇒ Object
readonly
Returns the value of attribute http_version.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(http_method, url, http_version, headers) ⇒ RequestInfo
constructor
A new instance of RequestInfo.
- #websocket_request? ⇒ Boolean
Constructor Details
#initialize(http_method, url, http_version, headers) ⇒ RequestInfo
Returns a new instance of RequestInfo.
5 6 7 8 9 10 |
# File 'lib/reel/request_info.rb', line 5 def initialize(http_method, url, http_version, headers) @http_method = http_method @url = url @http_version = http_version @headers = headers end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
3 4 5 |
# File 'lib/reel/request_info.rb', line 3 def headers @headers end |
#http_method ⇒ Object (readonly)
Returns the value of attribute http_method.
3 4 5 |
# File 'lib/reel/request_info.rb', line 3 def http_method @http_method end |
#http_version ⇒ Object (readonly)
Returns the value of attribute http_version.
3 4 5 |
# File 'lib/reel/request_info.rb', line 3 def http_version @http_version end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/reel/request_info.rb', line 3 def url @url end |