tarcieri/http — pull request #7 by blambeau (2012-02-10 08:49:06+00:00)
Title: Client dependency injection + Chainable is not chainable

Hi!

My aim is here is to allow injection the Client class to use in an easy way when including the Chainable module.
The reason of each commit is explained in the git comment.

By the way, the last commit shows that the Chainable module is not really chainable as implemented so far. I don't know how to fix this exactly. One idea that comes in mind is to mimic Rack with a chain of middlewares responding to `request(verb,uri,options)`. I've implemented that idea in an experimental branch in my repo, but I'm not really happy with it so far.

Any idea?