Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Net::HTTP#set_debug_output

set_debug_output(output)

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 { .... }
See also #send_request #sspi_auth #send_entity #sspi_auth? also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0