mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
4123be9568
This creates a new `Fog::Core::Connection` class that wraps around HTTP connections/requests but does not presume SAX parsing of the API response. A new `Fog::XML::SAXParserConnection` is available which implements the original behaviour with a clearer interface. `Fog::Connection` subclasses `SAXParserConnection` to be backwards compatible. Further testing and deprecation warnings are needed. Since mock testing occurs at a higher level the changed code is not exercised by the tests and I do not have access to an XML based API to debug quickly with.
21 lines
533 B
Ruby
21 lines
533 B
Ruby
require "nokogiri"
|
|
require "fog/core/parser"
|
|
|
|
module Fog
|
|
|
|
# @note Extracting XML components out of core is a work in progress.
|
|
#
|
|
# The {XML} module includes functionality that is common between APIs using
|
|
# XML to send and receive data.
|
|
#
|
|
# The intent is to provide common code for provider APIs using XML but not
|
|
# require it for those using JSON.
|
|
#
|
|
# @todo Add +require "fog/xml"+ and/or +include Fog::XML+ to providers using
|
|
# its services
|
|
#
|
|
module XML
|
|
end
|
|
end
|
|
|
|
require "fog/xml/sax_parser_connection"
|