- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for cacheUrlOverride (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt
* * Note that POST requests will not be sent to the server if this URL is set * and matches a cached response. */ fun cacheUrlOverride(cacheUrlOverride: HttpUrl?) = apply { this.cacheUrlOverride = cacheUrlOverride } /** * Configures this request's body to be compressed when it is transmitted. This also adds the * 'Content-Encoding: gzip' header.Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Oct 30 13:46:58 GMT 2025 - 14.7K bytes - Click Count (1) -
CHANGELOG.md
```kotlin val client = OkHttpClient.Builder() .addInterceptor(CompressionInterceptor(Zstd, Gzip)) .build() ``` * New: Support the `QUERY` HTTP method. You will need to set the `Request.cacheUrlOverride` property to cache calls made with this method. The `RequestBody.sha256()` may be helpful here; use it to compose a cache URL from the query body.Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 05 16:02:59 GMT 2025 - 36.2K bytes - Click Count (2)