Sha256: fcf309f87c6853ece93e361b2f71d71ce78f4b400b9cabc3eca1b628b55425ff
Contents?: true
Size: 598 Bytes
Versions: 2
Compression:
Stored size: 598 Bytes
Contents
require 'excon' class ExconHandler def handle(req, resp, &read_block) options = { :method => req.http_method.downcase.to_sym, :path => req.path, :query => req.querystring, :headers => req.headers, :body => req.body_stream, } options[:response_block] = read_block if block_given? connection = Excon.new(req.endpoint) excon_resp = connection.request(options) resp.status = excon_resp.status.to_i resp.headers = excon_resp.headers resp.body = excon_resp.body unless block_given? end end AWS.config(http_handler: ExconHandler.new)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws-sdk-1.40.3 | lib/aws/core/http/excon_handler.rb |
aws-sdk-1.40.2 | lib/aws/core/http/excon_handler.rb |