Class: Fog::XML::SAXParserConnection
- Inherits:
-
Core::Connection
- Object
- Core::Connection
- Fog::XML::SAXParserConnection
- Defined in:
- lib/fog/xml/sax_parser_connection.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#request(parser, params) ⇒ Excon::Response
Makes a request using the connection using Excon.
Instance Method Details
#request(parser, params) ⇒ Excon::Response
Makes a request using the connection using Excon
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/fog/xml/sax_parser_connection.rb', line 23 def request(parser, params) reset unless @persistent params[:response_block] = ::Fog::XML::Response.new(parser) # Make request which read chunks into parser response = @excon.request(params) # Cease parsing and override response.body with parsed data params[:response_block].finish response.body = parser.response response end |