Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 221 for Chen (0.16 sec)

  1. docs/changelogs/changelog_4x.md

        when certificates matched but the DNS addresses did not. This would only occur when following a
        redirect from one hostname to another, and where both hosts had common certificates.
    
     *  Fix: Don't fail on a redirect when a client has configured a 'trust everything' trust manager.
        Typically this would cause certain redirects to fail in debug and development configurations.
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

      // These properties are guarded by [lock].
    
      /**
       * If true, no new exchanges can be created on this connection. It is necessary to set this to
       * true when removing a connection from the pool; otherwise a racing caller might get it from the
       * pool when it shouldn't. Symmetrically, this must always be checked before returning a
       * connection from the pool.
       *
       * Once true this is always true. Guarded by this.
       */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

        connection.calls.add(CallReference(this, callStackTrace))
      }
    
      /**
       * Releases resources held with the request or response of [exchange]. This should be called when
       * the request completes normally or when it fails due to an exception, in which case [e] should
       * be non-null.
       *
       * If the exchange was canceled or timed out, this will wrap [e] in an exception that provides
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  4. mockwebserver/README.md

    MockWebServer
    =============
    
    A scriptable web server for testing HTTP clients
    
    
    ### Motivation
    
    This library makes it easy to test that your app Does The Right Thing when it
    makes HTTP and HTTPS calls. It lets you specify which responses to return and
    then verify that requests were made as expected.
    
    Because it exercises your full HTTP stack, you can be confident that you're
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  5. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          getResponse(Request("http://-/foo.html".toHttpUrl()))
        }
      }
    
      // The request should work once and then fail.
      @Test
      fun getKeepAlive() {
        server.enqueue(MockResponse(body = "ABC"))
    
        // The request should work once and then fail.
        val connection1 = getResponse(newRequest("/"))
        val source1 = connection1.body.source()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

    internal fun String.containsInvalidLabelLengths(): Boolean {
      if (length !in 1..253) return true
    
      var labelStart = 0
      while (true) {
        val dot = indexOf('.', startIndex = labelStart)
        val labelLength =
          when (dot) {
            -1 -> length - labelStart
            else -> dot - labelStart
          }
        if (labelLength !in 1..63) return true
        if (dot == -1) break
        if (dot == length - 1) break // Trailing '.' is allowed.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  7. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

          mappings.binarySearch {
            when {
              it.sourceCodePoint1 < codePoint -> -1
              it.sourceCodePoint0 > codePoint -> 1
              else -> 0
            }
          }
    
        // Code points must be in 0..0x10ffff.
        require(index in mappings.indices) { "unexpected code point: $codePoint" }
    
        val mapping = mappings[index]
        var result = true
    
        when (mapping.type) {
          TYPE_IGNORED -> Unit
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

            val digit =
              when (c) {
                in 'a'..'z' -> c - 'a'
                in 'A'..'Z' -> c - 'A'
                in '0'..'9' -> c - '0' + 26
                else -> return false // Malformed.
              }
            val deltaI = digit * w
            if (i > Int.MAX_VALUE - deltaI) return false // Prevent overflow.
            i += deltaI
            val t =
              when {
                k <= bias -> TMIN
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

       * [response]. Returns null if the challenge cannot be satisfied.
       *
       * The route is best effort, it currently may not always be provided even when logically
       * available. It may also not be provided when an authenticator is re-used manually in an
       * application interceptor, such as when implementing client-specific retries.
       */
      @Throws(IOException::class)
      fun authenticate(
        route: Route?,
        response: Response,
    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-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappedRange.kt

    internal sealed interface MappedRange {
      val rangeStart: Int
    
      data class Constant(
        override val rangeStart: Int,
        val type: Int,
      ) : MappedRange {
        val b1: Int
          get() =
            when (type) {
              TYPE_IGNORED -> 119
              TYPE_VALID -> 120
              TYPE_DISALLOWED -> 121
              else -> error("unexpected type: $type")
            }
      }
    
      data class Inline1(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.5K bytes
    - Viewed (0)
Back to top