# File lib/faraday/request/url_encoded.rb, line 10 def call(env) match_content_type(env) do |data| env[:body] = Faraday::Utils.build_nested_query data end @app.call env end
# File lib/faraday/request/url_encoded.rb, line 17 def match_content_type(env) if process_request?(env) env[:request_headers][CONTENT_TYPE] ||= self.class.mime_type yield env[:body] unless env[:body].respond_to?(:to_str) end end
Generated with the Darkfish Rdoc Generator 2.