Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 for results (0.4 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt

      private var nextAddress = 0xff000064L // 255.0.0.100 in IPv4; ::ff00:64 in IPv6.
    
      /** Sets the results for `hostname`.  */
      operator fun set(
        hostname: String,
        addresses: List<InetAddress>,
      ): FakeDns {
        hostAddresses[hostname] = addresses
        return this
      }
    
      /** Clears the results for `hostname`.  */
      fun clear(hostname: String): FakeDns {
        hostAddresses.remove(hostname)
        return this
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  2. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        val response = client.newCall(request).execute()
    
        val results =
          response.use {
            moshi.adapter(HowsMySslResults::class.java).fromJson(response.body.string())!!
          }
    
        Platform.get().log("results $results", Platform.WARN)
    
        assertTrue(results.session_ticket_supported)
        assertEquals("Probably Okay", results.rating)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  3. okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

        try {
          call.execute()
          fail("Request can't succeed")
        } catch (ioe: IOException) {
          assertThat(ioe).hasMessage("No results for google.invalid")
        }
      }
    
      @Test
      @Ignore("No results on CI for localhost")
      fun testDnsRequest() {
        val (allAddresses, exception) = dnsQuery("localhost")
    
        assertThat(exception).isNull()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  4. docs/changelogs/changelog_4x.md

    been, leading to rare cases of infinite retries. Please upgrade to this release!
    
     *  Fix: don't return stale DNS entries in `DnsOverHttps`. We were caching DNS results indefinitely
        rather than the duration specified in the response's cache-control header.
     *  Fix: Verify certificate IP addresses in canonical form. When a server presents a TLS certificate
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt

      for (dns in dnsProviders) {
        println("Testing ${dns.url}")
        for (host in names) {
          print("$host: ")
          System.out.flush()
          try {
            val results = dns.lookup(host)
            println(results)
          } catch (uhe: UnknownHostException) {
            var e: Throwable? = uhe
            while (e != null) {
              println(e)
              e = e.cause
            }
          }
        }
        println()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/internal/duplex/MockStreamHandler.kt

     * [receiveRequest] in the sequence they are run.
     */
    class MockStreamHandler : StreamHandler {
      private val actions = LinkedBlockingQueue<Action>()
      private val results = LinkedBlockingQueue<FutureTask<Void>>()
    
      fun receiveRequest(expected: String) =
        apply {
          actions += { stream ->
            val actual = stream.requestBody.readUtf8(expected.utf8Size())
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/AsyncDns.kt

    interface AsyncDns {
      /**
       * Query DNS records for `hostname`, in the order they are received.
       */
      fun query(
        hostname: String,
        callback: Callback,
      )
    
      /**
       * Callback to receive results from the DNS Queries.
       */
      @ExperimentalOkHttpApi
      interface Callback {
        /**
         * Return addresses for a dns query for a single class of IPv4 (A) or IPv6 (AAAA).
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  8. regression-test/README.md

    11:55:40 V/InstrumentationResultParser:
    11:55:40 V/InstrumentationResultParser: OK (12 tests)
    ...
    11:55:40 I/XmlResultReporter: XML test result file generated at /Users/myusername/workspace/okhttp/regression-test/build/outputs/regression-results/connected/TEST-pixel3a-Q(AVD) - 10-android-test-.xml. Total tests 13, passed 11, assumption_failure 1, ignored 1,
    ...
    BUILD SUCCESSFUL in 1m 30s
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Nov 13 07:09:56 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt

        timeout: Long,
        unit: TimeUnit,
      ): ConnectResult? {
        if (tcpConnectsInFlight.isEmpty()) return null
    
        val result = connectResults.poll(timeout, unit) ?: return null
    
        tcpConnectsInFlight.remove(result.plan)
    
        return result
      }
    
      private fun cancelInFlightConnects() {
        for (plan in tcpConnectsInFlight) {
          plan.cancel()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

    import okhttp3.Request
    import okhttp3.internal.SuppressSignatureCheck
    import okhttp3.internal.platform.Platform
    
    /**
     * Example of using a hardware key to perform client auth.
     * Prefer recent JDK builds, and results are temperamental to slight environment changes.
     * Different instructions and configuration may be required for other hardware devices.
     *
     * Using a yubikey device as a SSL key store.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (1)
Back to top