Method: HTTPX::Response#xml
- Defined in:
- lib/httpx/response.rb
#xml ⇒ Object
decodes the response payload into a Nokogiri::XML::Node object if the payload is valid “application/xml” (requires the “nokogiri” gem).
171 172 173 |
# File 'lib/httpx/response.rb', line 171 def xml decode(Transcoder::Xml) end |