Config
Library configuration options.
Constructors
Types
HTTP cache is off by default, but can speed up requests significantly. The Gradle Enterprise API disallows HTTP caching, but this library forcefully enables it by overwriting cache-related headers in API responses. Enable with cacheEnabled.
Properties
See CacheConfig.
OkHttpClient.Builder to use when building the library's internal OkHttpClient.
Enables debug logging from the library. All logging is output to stderr. By default, uses environment variable GRADLE_ENTERPRISE_API_DEBUG_LOGGING
or false
.
Maximum amount of concurrent requests allowed. Further requests will be queued. By default, uses environment variable GRADLE_ENTERPRISE_API_MAX_CONCURRENT_REQUESTS
or 5 (OkHttp's default value of Dispatcher.maxRequestsPerHost).
Timeout for reading an API response, used for OkHttpClient.readTimeoutMillis. By default, uses environment variable GRADLE_ENTERPRISE_API_READ_TIMEOUT_MILLIS
or 60_000. Keep in mind that GE API responses can be big and slow to send depending on the endpoint.