| Class | Description |
|---|---|
| RedirectPolicyInterceptor |
Follows a redirect with a policy OkHttp's own on/off
followRedirects cannot express:
a same-host redirect keeps the caller's headers (same origin, nothing leaks); a cross-host
redirect is still followed, but the caller's headers are stripped first, which is exactly what
makes a presigned-URL redirect from a private Nexus/Artifactory/S3-backed host work, since the
new URL carries its own authorization; an https-to-http redirect is never followed at all, so a
header can never be forwarded to the target in cleartext by way of a downgrade. |
| UrlDownloads |
Downloads a jar from an arbitrary HTTP(S) URL, caching it under a directory keyed by a hash of
jarUrl, and verifying an optional expected SHA-256 of the downloaded content. |