Github user agherardi commented on a diff in the pull request:
https://github.com/apache/httpcomponents-client/pull/88#discussion_r152026284
--- Diff:
httpclient5/src/main/java/org/apache/hc/client5/http/auth/AuthCache.java ---
@@ -45,4 +45,8 @@
void clear();
+ boolean canCache(String name);
+
+ boolean needsUpdatingAfterReusing(String name);
--- End diff --
> a cache that requires an update on each and every operation is probably
not a cache.
I disagree. Caching digest authentication information is useful to avoid
network roundtrips, which are much mostly costly than updating a cache.
Unfortunately, unlike "standard" caching usecases, reusing cached digest
authentication information requires the cache to be updated.
I understand you disagree with me, and that's totally fine. All I'm asking
for it the hooks into httpclient that allow me to add my custom auth cache.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]