Matthew Ling

  • Archive
  • RSS
  • Ask me anything

Net HTTP debug output to console with HTTParty

I found this handy tip in the httparty docs, if you want more info on whats going on during some REST request you can get some debug output during a test run or whatnot by adding this to your HTTParty enabled class … 

debug_output $stderr

So your class might look like:

require "httparty"
class AwesomeRestThing
  include HTTParty
  debug_output $stderr

  def do_something
  end
end
    • #rest
    • #httpart
    • #ruby
    • #rails
    • #tip
  • 6 months ago
  • 1
  • Comments
  • Permalink
  • Share
    Tweet

1 Notes/ Hide

  1. matthewling posted this

Recent comments

Blog comments powered by Disqus
← Previous • Next →

About

The reluctant programmer ...

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr