Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Make global connection options configurable #77
An HTTP library agnostic connection_options hash strikes me as a better solution than duplicating all options provided by the HTTP lib within instagram (proxy, ssl, etc.). First, it decouples the instagram from the HTTP library. Second, it makes it easier for users to set more advanced configurations.
If this pull request is well received, I will send a similar one for request options. In particular, it would be useful to be able to set timeouts (which is done on the request level in Faraday).
Note that the first included commit is just some housekeeping that doesn't change any logic.