api / org.gradle.caching.http

Package org.gradle.caching.http



open class HttpBuildCache : AbstractBuildCache

Configuration object for the HTTP build cache. The build cache only supports BASIC authentication currently.

Cache entries are loaded via GET and stored via PUT requests.

For a GET request we expect a 200 or 404 response and for PUT we expect any 2xx response. Other responses are treated as recoverable or non-recoverable errors, depending on the status code. E.g. we treat authentication failures (401 and 409) as non-recoverable while an internal server error (500) is recoverable.


open class HttpBuildCacheCredentials : PasswordCredentials

Password credentials for a HTTP build cache backend.