nahi/httpclient — pull request #218 by nahi (2014-10-21 14:02:39+00:00)
Title: Topic base url

Add :base_url to HTTPClient configuration
api = HTTPClient.new(:base_url => 'https://api.example.com/v1')
api.get("/users.json") # => Get https://api.example.com/v1/users.json
api.get("https://localhost/path") # => https://localhost/path

Passing path to get, post, etc. is recognized as a request to :base_url + uri. If you pass full URL :base_url is ignored.