Sha256: b96c58a363d3a22e4b0f7ccd9baf3416f4ea9c944015ea7ea1f0228f5738666c
Contents?: true
Size: 448 Bytes
Versions: 33
Compression:
Stored size: 448 Bytes
Contents
module Fog class Connection def initialize(url) @excon = Excon.new(url) end def request(params) if parser = params.delete(:parser) body = Nokogiri::XML::SAX::PushParser.new(parser) params[:block] = lambda { |chunk| body << chunk } end response = @excon.request(params) if parser body.finish response.body = parser.response end response end end end
Version data entries
33 entries across 33 versions & 1 rubygems