Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for sorted (0.17 sec)

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

     *
     * Ranges Data (32,612 bytes)
     * ==========================
     *
     * Each entry is 4 bytes, and represents a _range_ of code points that all share a common 14-bit
     * prefix. Entries are sorted by their complete code points.
     *
     * The 4 bytes are named b0, b1, b2 and b3. We also define these supplemental values:
     *
     *  * **b2a**: b2 + 0x80
     *  * **b3a**: b3 + 0x80
     *  * **b2b3**: (b2 << 7) + b3
     *
     * b0
    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)
  2. native-image-tests/src/main/kotlin/okhttp3/GenerateClassList.kt

      val testClasses =
        findTests(listOf(testSelector))
          .filter { it.isContainer }
          .mapNotNull { (it as? ClassBasedTestDescriptor)?.testClass?.name }
          .filterNot { it in avoidedTests }
          .sorted()
          .distinct()
      knownTestFile.writeText(testClasses.joinToString("\n"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  3. samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt

          suffix.replace("(.*)\\.java".toRegex()) { mr ->
            mr.groupValues[1].replace('/', '.')
          }.replace("(.*)\\.kt".toRegex()) { mr ->
            mr.groupValues[1].replace('/', '.') + "Kt"
          }
        }.sorted()
      }
    }
    
    @Disabled("Don't run by default")
    @Tag("Slow")
    class AllMainsTest {
      @ParameterizedTest
      @ArgumentsSource(MainTestProvider::class)
      fun runMain(className: String) {
        val mainMethod =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

          rangesIndices += compactTable.sections.read14BitInt(i)
          rangesOffsets += compactTable.sections.read14BitInt(i + 2)
        }
        assertThat(rangesIndices).isEqualTo(rangesIndices.sorted())
    
        // Check the ranges.
        for (r in 0 until rangesOffsets.size) {
          val rangePos = rangesOffsets[r] * 4
          val rangeLimit =
            when {
              r + 1 < rangesOffsets.size -> rangesOffsets[r + 1] * 4
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    import org.junit.jupiter.api.io.TempDir
    import org.opentest4j.TestAbortedException
    
    /** Android's URLConnectionTest, ported to exercise OkHttp's Call API.  */
    @Tag("Slow")
    class URLConnectionTest {
      @RegisterExtension
      val platform = PlatformRule()
    
      @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
    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)
  6. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

          "http://[0.0.0.0:0:0:0:0:0:1]/",
          "Invalid URL host: \"[0.0.0.0:0:0:0:0:0:1]\"",
        )
      }
    
      @Test
      fun hostIpv6WithIncompleteIpv4Suffix() {
        // To Chrome & Safari these are well-formed; Firefox disagrees. (We're consistent with Firefox).
        assertInvalid(
          "http://[0:0:0:0:0:1:255.255.255.]/",
          "Invalid URL host: \"[0:0:0:0:0:1:255.255.255.]\"",
        )
        assertInvalid(
    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)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

     * it easy to get sample values to use in such tests.
     *
     * This class is pretty fast and loose with default values: it attempts to provide values that are
     * well-formed, but doesn't guarantee values are internally consistent. Callers must take care to
     * configure the factory when sample values impact the correctness of the test.
     */
    class TestValueFactory : Closeable {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  8. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

            webSocketListener = listener
          }
    
        /**
         * Configures this response to be served as a response to an HTTP CONNECT request, either for
         * doing HTTPS through an HTTP proxy, or HTTP/2 prior knowledge through an HTTP proxy.
         *
         * When a new connection is received, all in-tunnel responses are served before the connection is
         * upgraded to HTTPS or HTTP/2.
         */
        fun inTunnel() =
          apply {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 13.3K bytes
    - Viewed (1)
  9. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

         *
         * @throws IllegalArgumentException If this is not a well-formed HTTP or HTTPS URL.
         */
        @JvmStatic
        @JvmName("get")
        fun String.toHttpUrl(): HttpUrl = Builder().parse(null, this).build()
    
        /**
         * Returns a new `HttpUrl` representing `url` if it is a well-formed HTTP or HTTPS URL, or null
         * if it isn't.
         */
        @JvmStatic
        @JvmName("parse")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  10. native-image-tests/src/main/kotlin/okhttp3/TestRegistration.kt

    package okhttp3
    
    import com.oracle.svm.core.annotate.AutomaticFeature
    import java.io.File
    import java.lang.IllegalStateException
    import org.graalvm.nativeimage.hosted.Feature
    import org.graalvm.nativeimage.hosted.RuntimeClassInitialization
    import org.graalvm.nativeimage.hosted.RuntimeReflection
    
    @AutomaticFeature
    class TestRegistration : Feature {
      override fun beforeAnalysis(access: Feature.BeforeAnalysisAccess) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
Back to top