I refactored some repetitive code in client.rb (http_get, http_post, etc) that was mostly identical among different methods and kinda hard to spot where there was a difference.
Hope you like the result.
extracted commonalities to private method
extracted encoded path preparation
renamed within_request => with_request
refined my refactoring strategy
renamed http_request to more proper https_request
Nice work, thanks!