Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 42 for shale (0.14 sec)

  1. okhttp/src/test/java/okhttp3/CacheTest.kt

            .header("Cache-Control", "max-stale=180")
            .build()
        val response = client.newCall(request).execute()
        assertThat(response.body.string()).isEqualTo("A")
        assertThat(response.header("Warning")).isEqualTo(
          "110 HttpURLConnection \"Response is stale\"",
        )
      }
    
      @Test
      fun requestMaxStaleDirectiveWithNoValue() {
        // Add a stale response to the cache.
        server.enqueue(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  2. docs/features/https.md

    OkHttpClient client = new OkHttpClient.Builder()
        .connectionSpecs(Collections.singletonList(spec))
        .build();
    ```
    
    ### Debugging TLS Handshake Failures
    
    The TLS handshake requires clients and servers to share a common TLS version and cipher suite. This
    depends on the JVM or Android version, OkHttp version, and web server configuration. If there is no
    common cipher suite and TLS version, your call will fail like this:
    
    ```
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

      private var mostRecentRebuildFailed: Boolean = false
    
      /**
       * To differentiate between old and current snapshots, each entry is given a sequence number each
       * time an edit is committed. A snapshot is stale if its sequence number is not equal to its
       * entry's sequence number.
       */
      private var nextSequenceNumber: Long = 0
    
      private val cleanupQueue = taskRunner.newQueue()
      private val cleanupTask =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

        }
      }
    
      /** A sink that writes outgoing data frames of a stream. This class is not thread safe. */
      internal inner class FramingSink(
        /** True if either side has cleanly shut down this stream. We shall send no more bytes. */
        var finished: Boolean = false,
      ) : Sink {
        /**
         * Buffer of outgoing data. This batches writes of small writes into this sink as larges frames
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  5. 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 May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

            .signedBy(pinnedRoot)
            .build()
        val attackerSwitch =
          HeldCertificate.Builder()
            .serialNumber(5L)
            .keyPair(attackerIntermediate.keyPair) // share keys between compromised CA and leaf!
            .commonName("attacker")
            .addSubjectAlternativeName("attacker.com")
            .signedBy(pinnedIntermediate)
            .build()
        val phonyVictim =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.8K bytes
    - Viewed (0)
  7. 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
    
            val cacheRequest =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/RequestCommonTest.kt

        // TODO check for Jvm or handle Long/long correctly
    //    assertThat(request.tag(Long::class)).isSameAs(longTag)
      }
    
      /** Confirm that we don't accidentally share the backing map between objects. */
      @Test
      fun tagsAreImmutable() {
        val builder =
          Request.Builder()
            .url("https://square.com")
        val requestA = builder.tag(String::class, "a").build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

              },
            )
            .build()
        dns["san.com"] = Dns.SYSTEM.lookup(server.hostName).subList(0, 1)
        assert200Http2Response(execute(url), server.hostName)
    
        // Simulate a stale connection in the pool.
        connection.get()!!.socket().close()
        val sanUrl = url.newBuilder().host("san.com").build()
        assert200Http2Response(execute(sanUrl), "san.com")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  10. okhttp/src/main/resources/okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz

    stordal.no store store.bb store.dk store.nf store.ro store.st store.ve storebase.store storfjord.no storj.farm stpetersburg.museum strand.no stranda.no stream streamlit.app streamlitapp.com stripper.jp stryn.no student.aero studio study stuff-4-sale.org stuff-4-sale.us stufftoread.com stuttgart.museum style su su.paba.se sub.jp sucks sue.fukuoka.jp suedtirol.it suginami.tokyo.jp sugito.saitama.jp suifu.ibaraki.jp suisse.museum suita.osaka.jp sukagawa.fukushima.jp sukumo.kochi.jp sula.no suldal.no suli.hu...
    Others
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 40.4K bytes
    - Viewed (0)
Back to top