Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 84 for Don (0.13 sec)

  1. docs/changelogs/changelog_4x.md

    
    ## Version 4.9.3
    
    _2021-11-21_
    
     *  Fix: Don't fail HTTP/2 responses if they complete before a `RST_STREAM` is sent.
    
    
    ## Version 4.9.2
    
    _2021-09-30_
    
     *  Fix: Don't include potentially-sensitive header values in `Headers.toString()` or exceptions.
        This applies to `Authorization`, `Cookie`, `Proxy-Authorization`, and `Set-Cookie` headers.
    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)
  2. okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt

        }
      }
    
      override fun loadForRequest(url: HttpUrl): List<Cookie> {
        val cookieHeaders =
          try {
            // The RI passes all headers. We don't have 'em, so we don't pass 'em!
            cookieHandler.get(url.toUri(), emptyMap<String, List<String>>())
          } catch (e: IOException) {
            Platform.get().log("Loading cookies failed for " + url.resolve("/...")!!, WARN, e)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:10:43 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        // If the non-host fields of the address don't overlap, we're done.
        if (!this.route.address.equalsNonHost(address)) return false
    
        // If the host exactly matches, we're done: this connection can carry the address.
        if (address.url.host == this.route().address.url.host) {
          return true // This connection is a perfect match.
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/FakeProxySelector.kt

      val proxies: MutableList<Proxy> = mutableListOf()
    
      fun addProxy(proxy: Proxy): FakeProxySelector {
        proxies.add(proxy)
        return this
      }
    
      override fun select(uri: URI): List<Proxy> {
        // Don't handle 'socket' schemes, which the RI's Socket class may request (for SOCKS).
        return if (uri.scheme == "http" || uri.scheme == "https") proxies else listOf(Proxy.NO_PROXY)
      }
    
      override fun connectFailed(
        uri: URI,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

          // Attempt to get the trust manager from an OpenJDK socket factory. We attempt this on all
          // platforms in order to support Robolectric, which mixes classes from both Android and the
          // Oracle JDK. Note that we don't support HTTP/2 or other nice features on Robolectric.
          val sslContextClass = Class.forName("sun.security.ssl.SSLContextImpl")
          val context = readFieldOrNull(sslSocketFactory, sslContextClass, "context") ?: return null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  6. okhttp/src/test/java/okhttp3/HttpUrlJvmTest.kt

    import java.net.URL
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    import okhttp3.testing.PlatformRule
    import org.junit.jupiter.api.Test
    
    @Suppress("HttpUrlsUsage") // Don't warn if we should be using https://.
    open class HttpUrlJvmTest {
      val platform = PlatformRule()
    
      /** This one's ugly: the HttpUrl's host is non-empty, but the URI's host is null. */
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          )
        val response = getResponse(request)
        assertContent("abc", response)
        assertThat(server.takeRequest().body.readUtf8()).isEqualTo("body")
      }
    
      // Check that if we don't read to the end of a response, the next request on the
      // recycled connection doesn't get the unread tail of the first request's response.
      // http://code.google.com/p/android/issues/detail?id=2939
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

    import kotlin.test.assertFailsWith
    import kotlin.test.fail
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.UrlComponentEncodingTester.Encoding
    import okhttp3.testing.PlatformVersion
    
    @Suppress("HttpUrlsUsage") // Don't warn if we should be using https://.
    open class HttpUrlTest {
      protected open fun parse(url: String): HttpUrl {
        return url.toHttpUrl()
      }
    
      protected open fun assertInvalid(
        string: String,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RetryTlsHandshake.kt

    fun retryTlsHandshake(e: IOException): Boolean {
      return when {
        // If there was a protocol problem, don't recover.
        e is ProtocolException -> false
    
        // If there was an interruption or timeout (SocketTimeoutException), don't recover.
        // For the socket connect timeout case we do not try the same host with a different
        // ConnectionSpec: we assume it is unreachable.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 07 16:05:34 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/WebPlatformToAsciiTest.kt

      val knownFailures =
        setOf(
          // OkHttp rejects empty labels.
          "x..xn--zca",
          "x..ß",
          // OkHttp rejects labels longer than 63 code points, the web platform tests don't.
          "x01234567890123456789012345678901234567890123456789012345678901x.xn--zca",
          "x01234567890123456789012345678901234567890123456789012345678901x.ß",
          "x01234567890123456789012345678901234567890123456789012345678901x",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
Back to top