Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Point (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

        // appendCodePoint(). The Punycode algorithm processes code points in increasing code-point
        // order, not in increasing index order.
        val codePoints = mutableListOf<Int>()
    
        // consume all code points before the last delimiter (if there is one)
        //  and copy them to output, fail on any non-basic code point
        val lastDelimiter = string.lastIndexOf('-', limit)
        if (lastDelimiter >= pos) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        if (address.url.host == this.route().address.url.host) {
          return true // This connection is a perfect match.
        }
    
        // At this point we don't have a hostname match. But we still be able to carry the request if
        // our connection coalescing requirements are met. See also:
        // https://hpbn.co/optimizing-application-delivery/#eliminate-domain-sharding
    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)
  3. docs/changelogs/changelog_4x.md

        two addresses are encoded differently, such as `192.168.1.1` and `0::0:0:FFFF:C0A8:101`. Note
        that OkHttp incorrectly rejected valid certificates resulting in a failure to connect; at no
        point were invalid certificates accepted.
     *  New: `OkHttpClient.Builder.minWebSocketMessageToCompress()` configures a threshold for
        compressing outbound web socket messages. Configure this with 0L to always compress outbound
    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)
  4. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

            } else {
              end = outBytes.size.toLong()
              truncated = nextOutFrame.truncated
            }
    
            // Write a frame.
            val length = (end - start).toInt()
            outputStream.write(outBytes, start.toInt(), length)
    
            // If the last frame was truncated, immediately close the connection.
            if (truncated) {
              socket.close()
            }
          } else {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt

     *
     * Code Points in Sections
     * =======================
     *
     * The full range of code points is 0..0x10fffe. We can represent any of these code points with 21
     * bits.
     *
     * We split each code point into a 14-bit prefix and a 7-bit suffix. All code points with the same
     * prefix are called a 'section'. There are 128 code points per section.
     *
     * Ranges Data (32,612 bytes)
     * ==========================
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:39:58 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CallTest.kt

            }
          }
        callA.enqueue(callback)
        callB.enqueue(callback)
        assertThat(server.takeRequest().path).isEqualTo("/a")
        callback.await(requestA.url).assertBody("A")
        // At this point we know the callback is ready, and that it will receive a cancel failure.
        callback.await(requestB.url).assertFailure("Canceled", "Socket closed")
      }
    
      @Test
      fun canceledBeforeIOSignalsOnFailure_HTTPS() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  7. CHANGELOG.md

     *  New: Switch our Internationalized Domain Name (IDN) implementation to [UTS #46 Nontransitional
        Processing][uts46]. With this fix, the `ß` code point no longer maps to `ss`. OkHttp now embeds
        its own IDN mapping table in the library.
    
     *  New: Prefer the client's configured precedence order for TLS cipher suites. (OkHttp used to
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        val request = server.takeRequest()
        assertThat(request.requestLine).isEqualTo("POST /foo HTTP/1.1")
        assertArrayEquals(postBytes, request.body.readByteArray())
        assertThat(request.headers["Content-Length"]!!.toInt()).isEqualTo(postBytes.size)
      }
    
      @ParameterizedTest
      @ArgumentsSource(ProtocolParamProvider::class)
      fun closeAfterFlush(
        protocol: Protocol,
        mockWebServer: MockWebServer,
      ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

          }
        headerValue = result
      }
      return result
    }
    
    internal fun Long.commonClampToInt(): Int {
      return when {
        this > Int.MAX_VALUE -> Int.MAX_VALUE
        else -> toInt()
      }
    }
    
    internal fun CacheControl.Companion.commonForceNetwork() =
      CacheControl.Builder()
        .noCache()
        .build()
    
    internal fun CacheControl.Companion.commonForceCache() =
      CacheControl.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

          isAscii() -> lowercase(Locale.US) // This is an ASCII string.
          else -> this
        }
      }
    
      /** Returns true if the [String] is ASCII encoded (0-127). */
      private fun String.isAscii() = length == utf8Size().toInt()
    
      /**
       * Returns true if [hostname] matches the domain name [pattern].
       *
       * @param hostname lower-case host name.
       * @param pattern domain name pattern from certificate. May be a wildcard pattern such as
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 7.7K bytes
    - Viewed (0)
Back to top