Class: Patron::Response
Represents the response from the HTTP server.
Attributes
Instance Attributes
| body | [R] | public |
Returns the value of attribute body. |
|---|---|---|---|
| headers | [R] | public |
Returns the value of attribute headers. |
| redirect_count | [R] | public |
Returns the value of attribute redirect_count. |
| status_line | [R] | public |
Returns the value of attribute status_line. |
| status | [R] | public |
Returns the value of attribute status. |
| url | [R] | public |
Returns the value of attribute url. |
Constructor Summary
public
initialize
[View source]
31 32 33 |
# File 'lib/patron/response.rb', line 31 def initialize @headers = {} end |
Public Visibility
Public Instance Method Summary
| #inspect |
|---|
Public Instance Method Details
inspect
public
inspect
[View source]
37 38 39 40 |
# File 'lib/patron/response.rb', line 37 def inspect # Avoid spamming the console with the header and body data "#<Patron::Response @status_line='#{@status_line}'>" end |