Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 109 for amatch (0.2 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

              } else if (labelBytesLeft > publicSuffixBytesLeft) {
                low = mid + end + 1
              } else {
                // Found a match.
                match = String(this, mid, publicSuffixLength)
                break
              }
            }
          }
          return match
        }
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

              }
    
              try {
                trimToSize()
              } catch (_: IOException) {
                mostRecentTrimFailed = true
              }
    
              try {
                if (journalRebuildRequired()) {
                  rebuildJournal()
                  redundantOpCount = 0
                }
              } catch (_: IOException) {
                mostRecentRebuildFailed = true
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

          // will not be transmitted.
          val conditionName: String
          val conditionValue: String?
          when {
            etag != null -> {
              conditionName = "If-None-Match"
              conditionValue = etag
            }
    
            lastModified != null -> {
              conditionName = "If-Modified-Since"
              conditionValue = lastModifiedString
            }
    
    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/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

    /**
     * An extremely generic binary search that doesn't know what data it's searching over. The caller
     * provides indexes and a comparison function, and this calls that function iteratively.
     *
     * @return the index of the match. If no match is found this is `(-1 - insertionPoint)`, where the
     *     inserting the element at `insertionPoint` will retain sorted order.
     */
    inline fun binarySearch(
      position: Int,
      limit: Int,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

        } catch (ignored: IllegalArgumentException) {
        }
        try {
          builder.connectTimeout(Duration.ofNanos(1))
        } catch (ignored: IllegalArgumentException) {
        }
        try {
          builder.writeTimeout(Duration.ofNanos(1))
        } catch (ignored: IllegalArgumentException) {
        }
        try {
          builder.readTimeout(Duration.ofNanos(1))
        } catch (ignored: IllegalArgumentException) {
        }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt

            )
    
        return certificates.single() as X509Certificate
      } catch (nsee: NoSuchElementException) {
        throw IllegalArgumentException("failed to decode certificate", nsee)
      } catch (iae: IllegalArgumentException) {
        throw IllegalArgumentException("failed to decode certificate", iae)
      } catch (e: GeneralSecurityException) {
        throw IllegalArgumentException("failed to decode certificate", e)
      }
    }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (2)
  7. okhttp/src/test/java/okhttp3/CacheTest.kt

        assertThat(get(url).body.string()).isEqualTo("B")
        assertThat(server.takeRequest().headers["If-None-Match"]).isNull()
        assertThat(server.takeRequest().headers["If-None-Match"]).isEqualTo("v1")
        assertThat(server.takeRequest().headers["If-None-Match"]).isEqualTo("v1")
        assertThat(server.takeRequest().headers["If-None-Match"]).isEqualTo("v2")
      }
    
      @Test
      fun combinedCacheHeadersCanBeNonAscii() {
    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)
  8. samples/guide/src/main/java/okhttp3/recipes/PerCallSettings.java

            .readTimeout(500, TimeUnit.MILLISECONDS)
            .build();
        try (Response response = client1.newCall(request).execute()) {
          System.out.println("Response 1 succeeded: " + response);
        } catch (IOException e) {
          System.out.println("Response 1 failed: " + e);
        }
    
        // Copy to customize OkHttp for this request.
        OkHttpClient client2 = client.newBuilder()
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 1.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt

            fail("Encoding $component $codePoint using $encoding")
          }
          return
        }
    
        // If the URI has more escaping than the HttpURL, check that the decoded values still match.
        val uriEscaped = uriEscapedCodePoints.indexOf(codePointString) != -1
        if (uriEscaped) {
          if (uri.toString() == httpUrl.toString()) {
            fail("Encoding $component $codePoint using $encoding")
          }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

          invocationContext: ReflectiveInvocationContext<Method>,
          extensionContext: ExtensionContext,
        ) {
          var failed = false
          try {
            invocation.proceed()
          } catch (e: TestAbortedException) {
            throw e
          } catch (e: Throwable) {
            failed = true
            rethrowIfNotExpected(e)
          } finally {
            resetPlatform()
          }
          if (!failed) {
            failIfExpected()
          }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.3K bytes
    - Viewed (0)
Back to top