Class: Aws::S3Interface::S3HttpResponseBodyParser

Inherits:
S3HttpResponseParser show all
Defined in:
lib/s3/s3_interface.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from S3HttpResponseParser

#result

Instance Method Summary collapse

Methods inherited from S3HttpResponseParser

#headers_to_string

Instance Method Details

#parse(response) ⇒ Object



1421
1422
1423
1424
1425
1426
1427
1428
1429
# File 'lib/s3/s3_interface.rb', line 1421

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