# File lib/restclient/payload.rb, line 112 def build_stream(params = nil) @stream = StringIO.new(flatten_params(params).collect do |entry| "#{entry[0]}=#{escape(entry[1])}" end.join("&")) @stream.seek(0) end
# File lib/restclient/payload.rb, line 119 def headers super.merge({ 'Content-Type' => 'application/x-www-form-urlencoded' }) end