Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for 504 (0.23 sec)

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

        /** Don't store the server's response in any cache. */
        fun noStore() = commonNoStore()
    
        /**
         * Only accept the response if it is in the cache. If the response isn't cached, a `504
         * Unsatisfiable Request` response will be returned.
         */
        fun onlyIfCached() = commonOnlyIfCached()
    
        /** Don't accept a transformed response. */
        fun noTransform() = commonNoTransform()
    
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

      }
    
      private fun getCacheOnlyResponse(request: Request): Response? {
        if (client.cache != null) {
          try {
            // Use the cache without hitting the network first
            // 504 code indicates that the Cache is stale
            val onlyIfCached =
              CacheControl.Builder()
                .onlyIfCached()
                .build()
    
            var cacheUrl = request.url
    
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

        assertCached(false, 417)
        assertCached(false, 418)
        assertCached(false, 500)
        assertCached(true, 501)
        assertCached(false, 502)
        assertCached(false, 503)
        assertCached(false, 504)
        assertCached(false, 505)
        assertCached(false, 506)
      }
    
      @Test
      fun responseCachingWith1xxInformationalResponse() {
        assertSubsequentResponseCached(102, 200)
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  4. 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 19 11:42:09 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  5. docs/recipes.md

    
    ### Canceling a Call ([.kt][CancelCallKotlin], [.java][CancelCallJava])
    
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
  6. CHANGELOG/CHANGELOG-1.8.md

    * Add possibility to use multiple floatingip pools in openstack loadbalancer ([#49697](https://github.com/kubernetes/kubernetes/pull/49697), [@zetaab](https://github.com/zetaab))
    * The 504 timeout error was returning a JSON error body that indicated it was a 500.  The body contents now correctly report a 500 error. ([#49678](https://github.com/kubernetes/kubernetes/pull/49678), [@smarterclayton](https://github.com/smarterclayton))
    Plain Text
    - Registered: Fri Apr 19 09:05:10 GMT 2024
    - Last Modified: Tue Feb 20 15:45:02 GMT 2024
    - 312.2K bytes
    - Viewed (1)
  7. okhttp/src/test/java/okhttp3/EventListenerTest.kt

            Request.Builder()
              .url(server.url("/"))
              .cacheControl(CacheControl.FORCE_CACHE)
              .build(),
          )
        val response = call.execute()
        assertThat(response.code).isEqualTo(504)
        response.close()
        assertThat(listener.recordedEventTypes())
          .containsExactly("CallStart", "SatisfactionFailure", "CallEnd")
      }
    
      @Test
      fun cacheHit() {
        enableCache()
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  8. api/go1.1.txt

    pkg net/http, const StatusCreated = 201
    pkg net/http, const StatusExpectationFailed = 417
    pkg net/http, const StatusForbidden = 403
    pkg net/http, const StatusFound = 302
    pkg net/http, const StatusGatewayTimeout = 504
    pkg net/http, const StatusGone = 410
    pkg net/http, const StatusHTTPVersionNotSupported = 505
    pkg net/http, const StatusInternalServerError = 500
    pkg net/http, const StatusLengthRequired = 411
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  9. api/go1.14.txt

    pkg syscall (freebsd-arm64), const SYS_POSIX_FALLOCATE = 530
    pkg syscall (freebsd-arm64), const SYS_POSIX_FALLOCATE ideal-int
    pkg syscall (freebsd-arm64), const SYS_POSIX_OPENPT = 504
    pkg syscall (freebsd-arm64), const SYS_POSIX_OPENPT ideal-int
    pkg syscall (freebsd-arm64), const SYS_PPOLL = 545
    pkg syscall (freebsd-arm64), const SYS_PPOLL ideal-int
    pkg syscall (freebsd-arm64), const SYS_PREAD = 475
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 508.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CallTest.kt

      }
    
      @Test
      fun onlyIfCachedReturns504WhenNotCached() {
        executeSynchronously("/", "Cache-Control", "only-if-cached")
          .assertCode(504)
          .assertBody("")
          .assertNoNetworkResponse()
          .assertNoCacheResponse()
      }
    
      @Test
      fun networkDropsOnConditionalGet() {
        client =
          client.newBuilder()
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
Back to top