Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for 504 (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/Cache.kt

     *         .onlyIfCached()
     *         .build())
     *     .url("http://publicobject.com/helloworld.txt")
     *     .build();
     * Response forceCacheResponse = client.newCall(request).execute();
     * if (forceCacheResponse.code() != 504) {
     *   // The resource was cached! Show it.
     * } else {
     *   // The resource was not cached.
     * }
     * ```
     *
     * This technique works even better in situations where a stale response is better than no response.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top