monkey patch HTTParty to use a timeout
I’m using HTTParty to write a client to an API I’m developing. One of the API calls is a setup thing and takes a long time to run, so HTTParty was barfing on timeouts. So I monkey patched HTTParty’s Request class to accept a timeout. No more barfs.
About this entry
You’re currently reading “monkey patch HTTParty to use a timeout,” an entry on e-huned.com
- Published:
- 06.11.09 / 2pm
- Category:
- personal
1 Comment
Jump to comment form | comments rss [?] | trackback uri [?]