Open mudge opened 9 years ago
I guess this, if implemented, would expose the ability to change the User-Agent used by embiggen, right?
Yes: if we allowed users to access (and even provide) the HTTP client itself, then they could configure it however they wish (e.g. proxy settings).
Embiggen currently uses Ruby's standard
Net::HTTP
library to perform HTTP requests but this is not open for extension (e.g. to configure proxies or swap out entirely). It might be better to provide an adapter interface for other HTTP client libraries.