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
37 38 39 |
# File 'lib/zold/http.rb', line 37 def status code.zero? ? 599 : code end |
#status_line ⇒ Object
41 42 43 |
# File 'lib/zold/http.rb', line 41 def status_line || '' end |
#to_s ⇒ Object
45 46 47 |
# File 'lib/zold/http.rb', line 45 def to_s "#{status}: #{status_line}\n#{body}" end |