Method: Net::HTTP#set_debug_output
- Defined in:
- lib/net/http.rb
#set_debug_output(output) ⇒ Object
WARNING This method opens a serious security hole. Never use this method in production code.
Sets an output stream for debugging.
http = Net::HTTP.new(hostname)
http.set_debug_output $stderr
http.start { .... }
724 725 726 727 |
# File 'lib/net/http.rb', line 724 def set_debug_output(output) warn 'Net::HTTP#set_debug_output called after HTTP started', uplevel: 1 if started? @debug_output = output end |