End of Life Ruby 3.0 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)
lib/net/http.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/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
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.1