Method: HTTParty::ClassMethods#debug_output

Defined in:
lib/httparty.rb

#debug_output(stream = $stderr) ⇒ Object

Set an output stream for debugging, defaults to $stderr. The output stream is passed on to Net::HTTP#set_debug_output.

class Foo
  include HTTParty
  debug_output $stderr
end


226
227
228
# File 'lib/httparty.rb', line 226

def debug_output(stream = $stderr)
  default_options[:debug_output] = stream
end