Sha256: c3004f26ed1d567a1e42a8c7d907d39a57a188dabe0a8c5675ebad54ae7538d2

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

require 'httparty'
require 'openssl'

require 'aws/core/response'

module AWS

  class HTTP
    include HTTParty
    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
        )
      )
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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