Created
August 14, 2018 12:24
-
-
Save proudlygeek/aad897e051bce450691965e2f9ad3c6b to your computer and use it in GitHub Desktop.
HTTPClient custom request debugger
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
class Debugger | |
def <<(line) | |
puts line | |
end | |
end | |
client = HTTPClient.new | |
debugger = Debugger.new | |
client.debug_dev = debugger | |
client.get 'https://www.google.com'; 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment