Class: UV::Http::Headers
- Inherits:
-
ActiveSupport::HashWithIndifferentAccess
- Object
- ActiveSupport::HashWithIndifferentAccess
- UV::Http::Headers
- Defined in:
- lib/uv-rays/http/parser.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#cookies ⇒ Object
Cookies at the time of the request.
-
#http_version ⇒ Object
The HTTP version returned.
-
#keep_alive ⇒ Object
Returns the value of attribute keep_alive.
-
#reason_phrase ⇒ Object
The text after the status code.
-
#status ⇒ Object
The status code (as an integer).
Instance Method Summary collapse
- #to_s ⇒ Object (also: #inspect)
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
22 23 24 |
# File 'lib/uv-rays/http/parser.rb', line 22 def body @body end |
#cookies ⇒ Object
Cookies at the time of the request
18 19 20 |
# File 'lib/uv-rays/http/parser.rb', line 18 def @cookies end |
#http_version ⇒ Object
The HTTP version returned
9 10 11 |
# File 'lib/uv-rays/http/parser.rb', line 9 def http_version @http_version end |
#keep_alive ⇒ Object
Returns the value of attribute keep_alive.
20 21 22 |
# File 'lib/uv-rays/http/parser.rb', line 20 def keep_alive @keep_alive end |
#reason_phrase ⇒ Object
The text after the status code
15 16 17 |
# File 'lib/uv-rays/http/parser.rb', line 15 def reason_phrase @reason_phrase end |
#status ⇒ Object
The status code (as an integer)
12 13 14 |
# File 'lib/uv-rays/http/parser.rb', line 12 def status @status end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
24 25 26 |
# File 'lib/uv-rays/http/parser.rb', line 24 def to_s "HTTP#{http_version} #{status} - keep alive: #{keep_alive}\nheaders: #{super}\nbody: #{body}" end |