- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 381 for listOf (0.04 sec)
-
container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt
testRequest { val client = OkHttpClient .Builder() .trustMockServer() .proxy(Proxy(Proxy.Type.HTTP, it.remoteAddress())) .protocols(listOf(Protocol.HTTP_1_1)) .build() val response = client .newCall( Request((mockServer.secureEndpoint + "/person?name=peter").toHttpUrl()), ).execute()Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 6.2K bytes - Viewed (1) -
build-logic/jvm/src/main/kotlin/gradlebuild/startscript/tasks/GradleStartScriptGenerator.kt
generator.setScriptRelPath("bin/gradle") generator.setClasspath(emptyList()) generator.setAppNameSystemProperty("org.gradle.appname") generator.setDefaultJvmOpts(listOf("-Xmx64m", "-Xms64m")) val unixScriptFile = startScriptsDir.file("gradle").get().asFile generator.generateUnixScript(unixScriptFile) unixScriptFile.injectAgentOptions(TextUtil.getUnixLineSeparator())
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Tue Apr 08 01:46:59 UTC 2025 - 6.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
assertContent("DEF", getResponse(newRequest("/"))) assertContent("GHI", getResponse(newRequest("/"))) assertThat(hostnameVerifier.calls) .isEqualTo(listOf("verify " + server.hostName)) assertThat(trustManager.calls) .isEqualTo(listOf("checkServerTrusted [CN=localhost 1]")) } @Test fun getClientRequestTimeout() { enqueueClientRequestTimeoutResponses()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 133.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt
assertThat(url.queryParameterValue(2)).isNull() assertThat(url.queryParameterValues("foo")).isEqualTo(listOf(null as String?)) assertThat(url.queryParameterValues("bar")).isEqualTo(listOf(null as String?)) assertThat(url.queryParameterValues("baz")).isEqualTo(listOf(null as String?)) } @Test fun queryParametersWithEmptyValues() { val url = parse("http://host/?foo=&bar=&baz=")
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon Aug 04 07:38:48 UTC 2025 - 69.9K bytes - Viewed (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/action/AnnotationGeneratorWorkAction.kt
groovyBuildScriptAnnotationFile.writeText(generateGroovyAnnotation(packageName, name, scriptReceiverAccessors)) } private object AnnotationGenerator { val ADDITIONAL_DEFAULT_IMPORTS = listOf( "javax.inject.Inject", "java.math.BigInteger", "java.math.BigDecimal" ) } private
Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Sun Jul 07 16:02:18 UTC 2024 - 8.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt
fastFallback = false, ) assertThat(routeSelector.hasNext()).isTrue() val (ipv4_1, ipv4_2) = dns.allocate(2) val (ipv6_1, ipv6_2) = dns.allocateIpv6(2) dns[uriHost] = listOf(ipv4_1, ipv4_2, ipv6_1, ipv6_2) val selection = routeSelector.next() assertThat(selection.routes.map { it.socketAddress.address }).containsExactly( ipv4_1, ipv4_2, ipv6_1,Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Oct 08 03:50:05 UTC 2025 - 20.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt
} } private fun enableProtocol(protocol: Protocol) { enableTls() client = client .newBuilder() .protocols(listOf(protocol, Protocol.HTTP_1_1)) .build() server.protocols = client.protocols } private fun enableTls() { client = client .newBuilder() .sslSocketFactory(
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 10.4K bytes - Viewed (0) -
docs/changelogs/upgrading_to_okhttp_4.md
3.x, null would yield a username or password of "null". #### HttpUrl.queryParameterValues() The return type of `HttpUrl.queryParameterValues()` is `List<String?>`. Lists that may contain null are uncommon and Kotlin callers may have incorrectly assigned the result to `List<String>`. Code Cleanup ------------ IntelliJ and Android Studio offer a **Code Cleanup** feature that will automatically update
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sun Feb 06 16:58:16 UTC 2022 - 10.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt
"ConnectionAcquired", "ConnectionReleased", ) } @Test @Throws(IOException::class) fun secondCallEventSequence() { enableTls() server.protocols = listOf(Protocol.HTTP_2, Protocol.HTTP_1_1) server.enqueue(MockResponse()) server.enqueue(MockResponse()) client .newCall(Request(server.url("/"))) .execute() .close()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 18:33:48 UTC 2025 - 9.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
.newClientBuilder() .protocols(listOf(Protocol.HTTP_2, Protocol.HTTP_1_1)) .sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ).hostnameVerifier(RecordingHostnameVerifier()) .build() scheme = "https" } else { server.protocols = listOf(Protocol.H2_PRIOR_KNOWLEDGE) client =
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Nov 01 12:18:11 UTC 2025 - 67.4K bytes - Viewed (0)