Package io.github.intisy.gradle.github.impl.download
package io.github.intisy.gradle.github.impl.download
-
ClassesClassDescriptionFollows a redirect with a policy OkHttp's own on/off
followRedirectscannot 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.Downloads a jar from an arbitrary HTTP(S) URL, caching it under a directory keyed by a hash ofjarUrl, and verifying an optional expected SHA-256 of the downloaded content.