Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 314 for listOf (0.03 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/InetAddressOrderTest.kt

        assertThat(result).isEqualTo(
          listOf(ipv6_ab),
        )
      }
    
      @Test fun singleIpv4() {
        val result = reorderForHappyEyeballs(listOf(ipv4_10_0_0_6))
    
        assertThat(result).isEqualTo(
          listOf(ipv4_10_0_0_6),
        )
      }
    
      @Test fun prioritiseIpv6() {
        val result = reorderForHappyEyeballs(listOf(ipv4_10_0_0_6, ipv6_ab))
    
        assertThat(result).isEqualTo(
          listOf(ipv6_ab, ipv4_10_0_0_6),
        )
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt

        enableProtocol(Protocol.HTTP_2)
    
        val request = Request(server1.url("/"))
    
        server1.enqueue(refusedStream)
        server2.enqueue(bodyResponse)
    
        dns[server1.hostName] = listOf(ipv6, ipv4)
        socketFactory[ipv6] = server1.socketAddress
        socketFactory[ipv4] = server2.socketAddress
    
        client =
          client
            .newBuilder()
            .fastFallback(false)
            .apply {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt

        builder.interceptors().addAll(listOf(null) as List<Interceptor>)
        assertFailsWith<IllegalStateException> {
          builder.build()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Null interceptor: [null]")
        }
      }
    
      @Test fun nullNetworkInterceptorInList() {
        val builder = OkHttpClient.Builder()
        builder.networkInterceptors().addAll(listOf(null) as List<Interceptor>)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 13.4K bytes
    - Viewed (1)
  4. .teamcity/src/main/kotlin/model/FunctionalTestBucketProvider.kt

     */
    val QUICK_CROSS_VERSION_BUCKETS =
        listOf(
            listOf("0.0", "3.0"), // 0.0 <= version < 3.0
            listOf("3.0", "4.0"), // 3.0 <= version < 4.0
            listOf("4.0", "5.0"), // 4.0 <= version < 5.0
            listOf("5.0", "6.0"), // 5.0 <=version < 6.0
            listOf("6.0", "7.0"), // 6.0 <=version < 7.0
            listOf("7.0", "8.0"), // 7.0 <=version < 8.0
            listOf("8.0", "9.0"), // 8.0 <=version < 9.0
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Thu Jul 10 05:08:24 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  5. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

                }
                val smallElementAggregateFunction: (List<PerformanceTestDuration>) -> List<PerformanceTestDuration> = { it }
    
                val buckets: List<List<PerformanceTestDuration>> =
                    splitIntoBuckets(
                        list,
                        toIntFunction,
                        largeElementSplitFunction,
                        smallElementAggregateFunction,
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Thu Jul 10 02:18:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  6. okhttp-idna-mapping-table/src/test/kotlin/okhttp3/internal/idn/MappingTablesTest.kt

        assertThat(
          mergeAdjacentRanges(
            listOf(
              Mapping(0x0000, 0x002c, TYPE_DISALLOWED_STD3_VALID, ByteString.EMPTY),
            ),
          ),
        ).containsExactly(
          Mapping(0x0000, 0x002c, TYPE_VALID, ByteString.EMPTY),
        )
      }
    
      @Test fun simplifyCombinesCanonicalEquivalent() {
        assertThat(
          mergeAdjacentRanges(
            listOf(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  7. samples/tlssurvey/src/main/kotlin/okhttp3/survey/types/Client.kt

     * limitations under the License.
     */
    package okhttp3.survey.types
    
    data class Client(
      val userAgent: String,
      val version: String,
      val platform: String? = null,
      val enabled: List<SuiteId> = listOf(),
      val supported: List<SuiteId> = listOf(),
    ) {
      val nameAndVersion: String
        get() = "$userAgent/$version"
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Apr 02 01:44:15 UTC 2024
    - 883 bytes
    - Viewed (0)
  8. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

      fun recordedRequest() {
        var recordedRequest: RecordedRequest =
          RecordedRequest(
            "",
            headersOf(),
            listOf(),
            0L,
            Buffer(),
            0,
            Socket(),
          )
        recordedRequest = RecordedRequest("", headersOf(), listOf(), 0L, Buffer(), 0, Socket())
        var requestUrl: HttpUrl? = recordedRequest.requestUrl
        var requestLine: String = recordedRequest.requestLine
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  9. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

            socket,
            socket.inetAddress.hostAddress,
            socket.port,
            true,
          ) as SSLSocket
        sslSocket.useClientMode = false
        Platform.get().configureTlsExtensions(sslSocket, null, listOf(Protocol.HTTP_2))
        sslSocket.startHandshake()
        return sslSocket
      }
    
      override fun onStream(stream: Http2Stream) {
        try {
          val requestHeaders = stream.takeHeaders()
          var path: String? = null
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

        builder = builder.protocols(listOf(Protocol.HTTP_1_1))
        builder = builder.connectionSpecs(listOf(ConnectionSpec.MODERN_TLS))
        val interceptors: List<Interceptor> = builder.interceptors()
        builder = builder.addInterceptor(Interceptor { TODO() })
        builder = builder.addInterceptor { it: Interceptor.Chain -> TODO() }
        val networkInterceptors: List<Interceptor> = builder.networkInterceptors()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
Back to top