nahi/httpclient — pull request #95 by jrochkind (2012-05-17 19:19:08+00:00)
Title: HTTPClient::IncludeClient

a mix-in for easily adding a thread-safe lazily initialized class-level
HTTPClient object to your class.

The rdocs say why and how -- if you have more questions about motivations/use cases/why I think this is generally useful, I can explain more.

Feedback welcome. If you aren't interested in having this in HTTPClient, no problem, I'll make my own (tiny, tiny) gem instead. If you are interested, but have some critique, feedback, suggestions, or demands as to implementation, I'm happy to hear em.