Module: HTTPX::Plugins::XML::ResponseMethods

Defined in:
lib/httpx/plugins/xml.rb,
sig/plugins/xml.rbs

Instance Method Summary collapse

Instance Method Details

#xmlNokogiri::XML::Node

decodes the response payload into a Nokogiri::XML::Node object if the payload is valid "application/xml" (requires the "nokogiri" gem).

Returns:

  • (Nokogiri::XML::Node)


56
57
58
# File 'lib/httpx/plugins/xml.rb', line 56

def xml
  decode(Transcoder)
end