Class: Aws::S3Interface::S3HttpResponseBodyParser
- Inherits:
-
S3HttpResponseParser
- Object
- S3HttpResponseParser
- Aws::S3Interface::S3HttpResponseBodyParser
- Defined in:
- lib/s3/s3_interface.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from S3HttpResponseParser
Instance Method Summary collapse
Methods inherited from S3HttpResponseParser
Instance Method Details
#parse(response) ⇒ Object
1260 1261 1262 1263 1264 1265 1266 1267 1268 |
# File 'lib/s3/s3_interface.rb', line 1260 def parse(response) x = response.body x= x.respond_to?(:force_encoding) ? x.force_encoding("UTF-8") : x # puts 'x.encoding = ' + response.body.encoding.to_s @result = { :object => x, :headers => headers_to_string(response.to_hash) } end |