Created
July 15, 2017 18:31
-
-
Save tmiyamon/d2149cba58fa2ee693a8cb4957537d7b to your computer and use it in GitHub Desktop.
debug net http in ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/http' | |
class Net::HTTP | |
alias :create :initialize | |
def initialize(*args) | |
create(*args) | |
self.set_debug_output $stderr | |
$stderr.sync = true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment