Class: Zold::HttpResponse
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Zold::HttpResponse
- Defined in:
- lib/zold/http.rb
Overview
Some clients waits for status method in response
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#status ⇒ Object
20 21 22 |
# File 'lib/zold/http.rb', line 20 def status code.zero? ? 599 : code end |
#status_line ⇒ Object
24 25 26 |
# File 'lib/zold/http.rb', line 24 def status_line || '' end |
#to_s ⇒ Object
28 29 30 |
# File 'lib/zold/http.rb', line 28 def to_s "#{status}: #{status_line}\n#{body}" end |