Class: Aws::S3Interface::S3HttpResponseParser
- Inherits:
-
Object
- Object
- Aws::S3Interface::S3HttpResponseParser
- Defined in:
- lib/s3/s3_interface.rb
Overview
PARSERS: Non XML
Direct Known Subclasses
S3HttpResponseBodyParser, S3HttpResponseHeadParser, S3UploadPartParser
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
Instance Attribute Details
#result ⇒ Object (readonly)
:nodoc:
1404 1405 1406 |
# File 'lib/s3/s3_interface.rb', line 1404 def result @result end |
Instance Method Details
#headers_to_string(headers) ⇒ Object
1410 1411 1412 1413 1414 1415 1416 1417 |
# File 'lib/s3/s3_interface.rb', line 1410 def headers_to_string(headers) result = {} headers.each do |key, value| value = value[0] if value.is_a?(Array) && value.size<2 result[key] = value end result end |
#parse(response) ⇒ Object
1406 1407 1408 |
# File 'lib/s3/s3_interface.rb', line 1406 def parse(response) @result = response end |