Sha256: cb14cefc5ee0667544c96721abb6c954f089c1b1ff596f756037a5496d7a9938

Contents?: true

Size: 625 Bytes

Versions: 2

Compression:

Stored size: 625 Bytes

Contents

require 'httparty'
require 'httmultiparty'
require 'openssl'

require 'aws/core/response'

module AWS

  class HTTP
    include HTTMultiParty
    format :xml
  end

  ##
  # Handles all communication to and from AWS itself
  ##
  class Connection

    ##
    # Send an AWS::Request to AWS proper, returning an AWS::Response.
    # Will raise if the request has an error
    ##
    def call(request)
      AWS::Response.new(
        HTTP.send(request.method,
          request.uri,
          :query => request.params,
          :headers => request.headers,
          :body => request.body
        )
      )
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_aws-0.0.1d lib/aws/core/connection.rb
simple_aws-0.0.1c lib/aws/core/connection.rb