Consider switching 'httpclient' dependency
jbellmann opened this issue · 6 comments
@harti2006 ??
No, not true, imo. The #14 brings in all the abstractions needed to drop the default-implementation (provided by us) and plug in a different one (maybe async, as mentioned in #14). That's fine.
Here we talk about 'shipping' the dependency (library) needed by our 'default-implementation'. Users are still able to completely put in their own 'HttpProvider' implementation (maybe with 'httpclient-async' or 'ok-http').
But we could improve the 'out-of-the-box' experience for 'tokens' with default-implementation working without putting the user in responsibility to care about adding dependencies we already know about.
Excluding this library from users project should be simple for an developer.
Ok, I agree. So if someone does not want to use our implementation, they can simply exclude Apache httpclient from their dependencies configuration 👍
Then it makes sense to add it as compile time dependency.
Nice, will create the PR for this and let you know.