Skip to content

Instantly share code, notes, and snippets.

@proudlygeek
Created August 14, 2018 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save proudlygeek/aad897e051bce450691965e2f9ad3c6b to your computer and use it in GitHub Desktop.
Save proudlygeek/aad897e051bce450691965e2f9ad3c6b to your computer and use it in GitHub Desktop.
HTTPClient custom request debugger
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