Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for refresh (0.17 sec)

  1. okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt

              LocalIndexedRepo::class.java.getName() +
                "; ${LocalIndexedRepo.PROP_NAME} = '$REPO_NAME'" +
                "; ${LocalIndexedRepo.PROP_LOCAL_DIR} = '$repoDir'",
            )
            refresh()
            prepareWorkspace()
          }
      }
    
      private fun Workspace.prepareWorkspace() {
        val repositoryPlugin = getRepository(REPO_NAME)
    
        // Deploy the bundles in the deployments test directory.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

          Header("location", ""),
          Header("max-forwards", ""),
          Header("proxy-authenticate", ""),
          Header("proxy-authorization", ""),
          Header("range", ""),
          Header("referer", ""),
          Header("refresh", ""),
          Header("retry-after", ""),
          Header("server", ""),
          Header("set-cookie", ""),
          Header("strict-transport-security", ""),
          Header("transfer-encoding", ""),
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (1)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

              .headers(conditionalRequestHeaders.build())
              .build()
          return CacheStrategy(conditionalRequest, cacheResponse)
        }
    
        /**
         * Returns the number of milliseconds that the response was fresh for, starting from the served
         * date.
         */
        private fun computeFreshnessLifetime(): Long {
          val responseCaching = cacheResponse!!.cacheControl
          if (responseCaching.maxAgeSeconds != -1) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheTest.kt

            .build(),
        )
        assertThat(get(server.url("/")).body.string()).isEqualTo("A")
        val request =
          Request.Builder()
            .url(server.url("/"))
            .header("Cache-Control", "min-fresh=120")
            .build()
        val response = client.newCall(request).execute()
        assertThat(response.body.string()).isEqualTo("B")
      }
    
      @Test
      fun requestMaxStale() {
        server.enqueue(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

        assertThat(client.connectionPool.connectionCount()).isEqualTo(2)
        assertThat(server.takeRequest().sequenceNumber)
          .isEqualTo(0) // Fresh connection.
        assertThat(server.takeRequest().sequenceNumber)
          .isEqualTo(0) // Fresh connection.
      }
    
      /**
       * Check we would use an existing connection to a later DNS result instead of connecting to the
       * first DNS result for the first time.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CacheControlTest.kt

            .minFresh(3.seconds)
            .onlyIfCached()
            .noTransform()
            .immutable()
            .build()
        assertThat(cacheControl.toString()).isEqualTo(
          "no-cache, no-store, max-age=1, max-stale=2, min-fresh=3, only-if-cached, no-transform, immutable",
        )
        assertThat(cacheControl.noCache).isTrue()
        assertThat(cacheControl.noStore).isTrue()
        assertThat(cacheControl.maxAgeSeconds).isEqualTo(1)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

              .url(server.url("/"))
              .build(),
          )
        val response1 = call1.execute()
        assertThat(response1.body.string()).isEqualTo("abc")
        response1.close()
    
        // Force a fresh connection for the next request.
        client.connectionPool.evictAll()
    
        // Confirm that a second request also succeeds. This should detect caching problems.
        server.enqueue(
          MockResponse.Builder()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.8K bytes
    - Viewed (0)
  8. docs/features/caching.md

    ```kotlin
    cache.evictAll()
    ```
    
    Removing individual items can be done using the urls iterator.
    This would be typical after a user initiates a force refresh by a pull to refresh type action.
    
    ```java
        val urlIterator = cache.urls()
        while (urlIterator.hasNext()) {
          if (urlIterator.next().startsWith("https://www.google.com/")) {
            urlIterator.remove()
          }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  9. native-image-tests/src/main/kotlin/okhttp3/GenerateClassList.kt

        "okhttp3.osgi.OsgiTest",
        // Hanging.
        "okhttp3.CookiesTest",
        // Hanging.
        "okhttp3.WholeOperationTimeoutTest",
      )
    
    /**
     * Run periodically to refresh the known set of working tests.
     *
     * TODO use filtering to allow skipping acceptable problem tests
     */
    fun main() {
      val knownTestFile = File("native-image-tests/src/main/resources/testlist.txt")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Cache.kt

     * doesn't cache partial responses.
     *
     * ## Force a Network Response
     *
     * In some situations, such as after a user clicks a 'refresh' button, it may be necessary to skip
     * the cache, and fetch data directly from the server. To force a full refresh, add the `no-cache`
     * directive:
     *
     * ```java
     * Request request = new Request.Builder()
     *     .cacheControl(new CacheControl.Builder().noCache().build())
    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