mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
1768f2a37e
Attempting to move to using Fog::XML::SAXParserConnection directly failed because the arguments changed. This adds another compatibility level with two key differences: 1) It's namespaced within XML so stands out as not being part of core 2) It is NOT creating deprecation warnings so can be used as the final step if rewriting to use SAXParserConnection is undesired So when merged Fog::Connection usage will create noise. Fog::XML::Connection works the same way and will be extracted to "fog/xml" when we get to it. Fog::Core::Connection just wraps Excon.request and leaves the response body parsing to the provider.
13 lines
266 B
Ruby
13 lines
266 B
Ruby
module Fog
|
|
module XML
|
|
class Connection < SAXParserConnection
|
|
def request(params, &block)
|
|
if (parser = params.delete(:parser))
|
|
super(parser, params)
|
|
else
|
|
original_request(params)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|