Created
April 29, 2023 03:46
-
-
Save dpaluy/de3c501c252a5440033833b03e45e51e to your computer and use it in GitHub Desktop.
Debug Net HTTP
This file contains hidden or 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
module Net::HTTPWithDebug | |
def initialize(*args) | |
super | |
set_debug_output(STDERR) | |
end | |
end | |
Net::HTTP.prepend(Net::HTTPWithDebug) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment