- Sort Score
- Num 10 results
- Language All
Results 311 - 320 of 929 for val2 (0.01 seconds)
-
okhttp-testing-support/src/main/kotlin/okhttp3/EventListenerRelay.kt
* a stale [EventListener] in a field or local variable. */ class EventListenerRelay( val call: Call, val eventRecorder: EventRecorder, ) { private val eventListenerAdapter = EventListenerAdapter() .apply { listeners += ::onEvent } val eventListener: EventListener get() = eventListenerAdapter var eventCount = 0
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 1.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt
val altIpaNames = getSubjectAltNames(certificate, ALT_IPA_NAME) val altDnsNames = getSubjectAltNames(certificate, ALT_DNS_NAME) return altIpaNames + altDnsNames } private fun getSubjectAltNames( certificate: X509Certificate, type: Int, ): List<String> { try { val subjectAltNames = certificate.subjectAlternativeNames ?: return emptyList()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 7.6K bytes - Click Count (0) -
android-test/src/androidTest/java/okhttp/android/test/SingleAndroidTest.kt
*/ class SingleAndroidTest { private val handshakeCertificates = localhost() private var client: OkHttpClient = OkHttpClient .Builder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ).connectionPool(ConnectionPool(0, 1, TimeUnit.SECONDS)) .build() private val server = MockWebServer() @TestCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Nov 21 12:33:41 GMT 2025 - 2.1K bytes - Click Count (0) -
okhttp-dnsoverhttps/README.md
``` ### Usage ``` val appCache = Cache(File("cacheDir", "okhttpcache"), 10 * 1024 * 1024) val bootstrapClient = OkHttpClient.Builder().cache(appCache).build() val dns = DnsOverHttps.Builder().client(bootstrapClient) .url("https://dns.google/dns-query".toHttpUrl()) .bootstrapDnsHosts(InetAddress.getByName("8.8.4.4"), InetAddress.getByName("8.8.8.8")) .build()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 739 bytes - Click Count (0) -
samples/compare/src/test/kotlin/okhttp3/compare/JavaHttpClientTest.kt
*/ class JavaHttpClientTest { @JvmField @RegisterExtension val platform = PlatformRule() @StartStop private val server = MockWebServer() @Test fun get() { // Not available platform.expectFailureOnJdkVersion(8) val httpClient = HttpClient .newBuilder() .followRedirects(NORMAL) .build()Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 2.8K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSocketFactory.kt
*/ open class DelegatingSocketFactory( private val delegate: SocketFactory, ) : SocketFactory() { @Throws(IOException::class) override fun createSocket(): Socket { val socket = delegate.createSocket() return configureSocket(socket) } @Throws(IOException::class) override fun createSocket( host: String, port: Int, ): Socket { val socket = delegate.createSocket(host, port)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.1K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/Tags.kt
*/ private class LinkedTags<K : Any>( private val key: KClass<K>, private val value: K, private val next: Tags, ) : Tags() { override fun <T : Any> plus( key: KClass<T>, value: T?, ): Tags { // Create a copy of this `LinkedTags` that doesn't have a mapping for `key`. val thisMinusKey = when { key == this.key -> next // Subtract this!
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Oct 24 11:37:46 GMT 2025 - 3.9K bytes - Click Count (0) -
build-logic-commons/build-platform/build.gradle.kts
val javaParserVersion = "3.18.0" // Note: this currently still contains 3/4 logic as we will temporarily have Groovy 3 for the build itself until we move to a Gradle built with Groovy 4 // It can be removed or changed to 4/5 logic (if necessary) at that point. val groovyVersion = GroovySystem.getVersion() val isGroovy4 = VersionNumber.parse(groovyVersion).major >= 4
Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Dec 30 10:16:30 GMT 2025 - 4.6K bytes - Click Count (0) -
android-test/src/test/kotlin/okhttp/android/test/ShadowDnsResolver.kt
@Implements(DnsResolver::class) class ShadowDnsResolver { var responder: (Request) -> Unit = { it.callback.onAnswer(listOf(), 0) } data class Request( val network: Network?, val domain: String, val nsType: Int, val flags: Int, val callback: DnsResolver.Callback<List<InetAddress>>, ) @Implementation fun query( network: Network?, domain: String, nsType: Int,Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Dec 30 23:28:56 GMT 2024 - 1.7K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/RecordingOkAuthenticator.kt
import java.io.IOException import okhttp3.Authenticator import okhttp3.Request import okhttp3.Response import okhttp3.Route class RecordingOkAuthenticator( val credential: String?, val scheme: String?, ) : Authenticator { val responses = mutableListOf<Response>() val routes = mutableListOf<Route>() fun onlyResponse() = responses.single() fun onlyRoute() = routes.single() @Throws(IOException::class)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 1.7K bytes - Click Count (0)