Sha256: 0c4d6221c112fbd6999d3b56c1ba3e8518cfe450b9eecae5588c3f79413f5c6d

Contents?: true

Size: 341 Bytes

Versions: 3

Compression:

Stored size: 341 Bytes

Contents

require 'faraday_middleware/response_middleware'

module FaradayMiddleware
  # Public: parses response bodies with MultiXml.
  class ParseXml < ResponseMiddleware
    dependency 'multi_xml'

    define_parser { |body|
      ::MultiXml.parse(body)
    }
  end
end

# deprecated alias
Faraday::Response::ParseXml = FaradayMiddleware::ParseXml

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
faraday_middleware-0.8.7 lib/faraday_middleware/response/parse_xml.rb
faraday_middleware-0.8.6 lib/faraday_middleware/response/parse_xml.rb
faraday_middleware-0.8.5 lib/faraday_middleware/response/parse_xml.rb