- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 405 for listOf (0.05 sec)
-
okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt
} @AfterEach fun tearDown() { Authenticator.setDefault(null) factory.close() } @Test fun testBasicAuth() { fakeDns["server"] = listOf(InetAddress.getLocalHost()) val route = factory.newRoute() val request = Request.Builder() .url("https://server/robots.txt") .build() val response = Response.Builder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt
} /** Prepares the proxy servers to try. */ private fun resetNextProxy( url: HttpUrl, proxy: Proxy?, ) { fun selectProxies(): List<Proxy> { // If the user specifies a proxy, try that and only that. if (proxy != null) return listOf(proxy) // If the URI lacks a host (as in "http://</"), don't call the ProxySelector. val uri = url.toUri()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Mar 06 17:33:38 UTC 2024 - 7.2K bytes - Viewed (0) -
.teamcity/src/main/kotlin/common/BuildScanUtils.kt
private fun Stage.getBuildScanCustomValues(): List<String> { return StageName.values() .slice(this.stageName.ordinal until StageName.READY_FOR_RELEASE.ordinal + 1) .map { it.uuid } } fun Stage.getBuildScanCustomValueParam(testCoverage: TestCoverage? = null): String { val customValues = if (testCoverage != null) { listOf(testCoverage.asBuildScanCustomValue()) + getBuildScanCustomValues()
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Sep 30 07:24:00 UTC 2024 - 1.8K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/RichReportScrapper.kt
fun toText() = StringBuilder("Binary compatibility\n").apply { listOf("Errors" to errors, "Warnings" to warnings, "Information" to information, "Accepted" to accepted).forEach { (name, list) -> if (list.isNotEmpty()) { append(" $name (").append(list.size).append(")\n") append(list.joinToString(separator = "\n ", prefix = " ", postfix = "\n")) }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 2.3K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt
companion object { /** * Reads all stories in the folders provided, asserts if no story found. */ @JvmStatic protected fun createStories(interopTests: Array<String>): List<Any> { if (interopTests.isEmpty()) return listOf<Any>(Story.MISSING) val result = mutableListOf<Any>() for (interopTestName in interopTests) { val stories = HpackJsonUtil.readStories(interopTestName)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureAndroidTrustManager.kt
chain: Array<out X509Certificate>, authType: String, host: String, ): List<Certificate> { if (host in insecureHosts) return listOf() try { val method = checkServerTrustedMethod ?: throw CertificateException("Failed to call checkServerTrusted") return method.invoke(delegate, chain, authType, host) as List<Certificate> } catch (e: InvocationTargetException) { throw e.targetException
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.4K bytes - Viewed (0) -
build-logic/buildquality/src/main/kotlin/gradlebuild/incubation/action/IncubatingApiReportAggregationWorkAction.kt
} } generateReport(byCategory) } private fun toCategory(version: String, gradleModule: String) = when { gradleModule.endsWith("-native") || gradleModule in listOf("model-core", "platform-base", "testing-base") -> "Software Model and Native" else -> "Incubating since $version" } private fun generateReport(data: Map<String, ReportNameToProblems>) {
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Mon Jan 18 06:55:55 UTC 2021 - 3.4K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt
@Test fun getWithCustomSocketFactory() { client = client.newBuilder() .sslSocketFactory(CustomSSLSocketFactory(client.sslSocketFactory), client.x509TrustManager!!) .connectionSpecs( listOf( ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) .supportsTlsExtensions(false) .build(), ), ) .eventListener( object : EventListener() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/SocksProxyTest.kt
} @Test fun proxySelector() { server.enqueue(MockResponse.Builder().body("abc").build()) val proxySelector: ProxySelector = object : ProxySelector() { override fun select(uri: URI) = listOf(socksProxy.proxy()) override fun connectFailed( uri: URI, socketAddress: SocketAddress, e: IOException, ) = error("unexpected call") } val client =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/OpenJSSETest.kt
.isInstanceOf<SSLSocketImpl>() } } @Test fun testSupportedProtocols() { val factory = SSLSocketFactoryImpl() val s = factory.createSocket() as SSLSocketImpl assertEquals(listOf("TLSv1.3", "TLSv1.2"), s.enabledProtocols.toList()) } @Test @Disabled fun testMozilla() { assumeNetwork() val request = Request.Builder().url("https://mozilla.org/robots.txt").build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 3.7K bytes - Viewed (0)