module HTTPX::Plugins::XML::RequestBodyClassMethods

  1. lib/httpx/plugins/xml.rb

Methods

Public Instance

  1. initialize_body

Public Instance methods

initialize_body(params)

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

[show source]
   # File lib/httpx/plugins/xml.rb
63 def initialize_body(params)
64   if (xml = params.delete(:xml))
65     # @type var xml: Nokogiri::XML::Node | String
66     return Transcoder.encode(xml)
67   end
68 
69   super
70 end