lib/net/amazon/s3.rb
# Sends a properly-signed GET request to the specified S3 path and returns
# a Net::HTTPResponse object.
# 
# When called with a block, yields a Net::HTTPResponse object whose body has
# not been read; the caller can process it using
# Net::HTTPResponse.read_body.
Sends a properly-signed GET request to the specified S3 path and returns
a Net::HTTPResponse object.

When called with a block, yields a Net::HTTPResponse object whose body has
not been read; the caller can process it using
Net::HTTPResponse.read_body.
Sends a properly - signed GET request to the specified S3 path and returns a Net :: HTTPResponse object . When called with a block yields a Net :: HTTPResponse object whose body has not been read ; the caller can process it using Net :: HTTPResponse . read_body .
def request_get(path, headers = {})
      http = Net::HTTP.new(REST_ENDPOINT, @options[:ssl] ? 443 : 80)
      http.use_ssl     = @options[:ssl]
      http.verify_mode = OpenSSL::SSL::VERIFY_NONE
      http.start do |http|
        req = sign_request(Net::HTTP::Get.new(path), nil, headers)
        if block_given?
          http.request(req) {|response| yield response }
        else
          return http.request(req)
        end
      end
    end
def request_get ( path , headers = { } ) http = Net :: HTTP . new ( REST_ENDPOINT , @options [ :ssl ] ? 443 : 80 ) http . use_ssl = @options [ :ssl ] http . verify_mode = OpenSSL :: SSL :: VERIFY_NONE http . start do | http | req = sign_request ( Net :: HTTP :: Get . new ( path ) , nil , headers ) if block_given? http . request ( req ) { | response | yield response } else return http . request ( req ) end end end
Sends a properly-signed GET request to the specified S3 path and returns
a Net::HTTPResponse object.
Sends a properly - signed GET request to the specified S3 path and returns a Net :: HTTPResponse object .
path
<not_specific>
headers
<not_specific>