Sha256: 8881593febc31d0d95541b453cc4d34fade1f7ef3e8af0a9373c143ccec10af2

Contents?: true

Size: 327 Bytes

Versions: 5

Compression:

Stored size: 327 Bytes

Contents

require 'faraday_middleware/response_middleware'

module FaradayMiddleware
  class ParseNokogiriXml < ResponseMiddleware
    dependency 'nokogiri'

    define_parser { |body|
      ::Nokogiri::XML(body, nil, "utf-8")
    }
  end
end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
agiley-faraday_middleware-0.9.1 lib/faraday_middleware/response/parse_nokogiri_xml.rb
agiley-faraday_middleware-0.9.0 lib/faraday_middleware/response/parse_nokogiri_xml.rb
agiley-faraday_middleware-0.8.3.2 lib/faraday_middleware/response/parse_nokogiri_xml.rb
agiley-faraday_middleware-0.8.3.1 lib/faraday_middleware/response/parse_nokogiri_xml.rb
agiley-faraday_middleware-0.8.3 lib/faraday_middleware/response/parse_nokogiri_xml.rb