Class: Hoodoo::Client::Endpoint::HTTPBased::DescriptionOfResponse
- Inherits:
-
Object
- Object
- Hoodoo::Client::Endpoint::HTTPBased::DescriptionOfResponse
- Defined in:
- lib/hoodoo/client/endpoint/endpoints/http_based.rb
Overview
Description of data describing an HTTP response. Used by #get_data_for_response to generate a response array or hash (see #response_class_for).
Instance Attribute Summary collapse
-
#action ⇒ Object
The action that was performed - a Symbol from Hoodoo::Services::Middleware::ALLOWED_ACTIONS.
-
#http_headers ⇒ Object
An object that will allow Hash-like lookup and iteration of key/value pairs via
each
. -
#http_status_code ⇒ Object
The HTTP status code _as an Integer_.
-
#raw_body_data ⇒ Object
The raw (“unparsed”) returned body data as a String.
Instance Attribute Details
#action ⇒ Object
The action that was performed - a Symbol from Hoodoo::Services::Middleware::ALLOWED_ACTIONS.
133 134 135 |
# File 'lib/hoodoo/client/endpoint/endpoints/http_based.rb', line 133 def action @action end |
#http_headers ⇒ Object
An object that will allow Hash-like lookup and iteration of key/value pairs via each
. A raw Net::HTTPOK (sic.) instance from a successful response is an example of such an object.
May be unset (nil
) or empty, especially for error cases.
149 150 151 |
# File 'lib/hoodoo/client/endpoint/endpoints/http_based.rb', line 149 def http_headers @http_headers end |
#http_status_code ⇒ Object
The HTTP status code _as an Integer_.
137 138 139 |
# File 'lib/hoodoo/client/endpoint/endpoints/http_based.rb', line 137 def http_status_code @http_status_code end |
#raw_body_data ⇒ Object
The raw (“unparsed”) returned body data as a String.
141 142 143 |
# File 'lib/hoodoo/client/endpoint/endpoints/http_based.rb', line 141 def raw_body_data @raw_body_data end |