Module: HTTPX::Plugins::XML::RequestBodyClassMethods

Defined in:
lib/httpx/plugins/xml.rb

Instance Method Summary collapse

Instance Method Details

#initialize_body(params) ⇒ Object

…, xml: Nokogiri::XML::Node #=> xml encoder



63
64
65
66
67
68
69
70
# File 'lib/httpx/plugins/xml.rb', line 63

def initialize_body(params)
  if (xml = params.delete(:xml))
    # @type var xml: Nokogiri::XML::Node | String
    return Transcoder.encode(xml)
  end

  super
end