- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 710 for fun (0.01 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt
assertThat(request.headers["Cookie"]).isEqualTo("a=android; b=banana") } @Test fun cookieHandlerLikeAndroid() { server.enqueue(MockResponse()) val serverUrl = urlWithIpAddress(server, "/") val androidCookieHandler: CookieHandler = object : CookieHandler() { override fun get( uri: URI, map: Map<String, List<String>>, ) = mapOf( "Cookie" to
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 13K bytes - Viewed (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/ConscryptSocketAdapter.kt
* directly. */ class ConscryptSocketAdapter : SocketAdapter { override fun matchesSocket(sslSocket: SSLSocket): Boolean = Conscrypt.isConscrypt(sslSocket) override fun isSupported(): Boolean = isSupported override fun getSelectedProtocol(sslSocket: SSLSocket): String? = when { matchesSocket(sslSocket) -> Conscrypt.getApplicationProtocol(sslSocket)Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt
override fun contentType(): MediaType = "application/xml".toMediaType() override fun writeTo(sink: BufferedSink) { sink.writeUtf8("<el") sink.flush() throw IOException("failed to stream the XML") } } class ValidRequestBody : RequestBody() { override fun contentType(): MediaType = "application/xml".toMediaType() override fun writeTo(sink: BufferedSink) {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 8.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskQueue.kt
* * TODO: make this inline once this is fixed: https://github.com/oracle/graal/issues/3466 */ fun schedule( name: String, delayNanos: Long = 0L, block: () -> Long, ) { schedule( object : Task(name) { override fun runOnce(): Long = block() }, delayNanos, ) } /** * Executes [block] once on a task runner thread. *
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 7.3K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/okio/LoggingFilesystem.kt
class LoggingFilesystem( fileSystem: FileSystem, ) : ForwardingFileSystem(fileSystem) { fun log(line: String) { println(line) } override fun appendingSink( file: Path, mustExist: Boolean, ): Sink { log("appendingSink($file)") return super.appendingSink(file, mustExist) } override fun atomicMove( source: Path, target: Path, ) {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/Tags.kt
* instance that does not have any mapping for [key]. */ abstract fun <T : Any> plus( key: KClass<T>, value: T?, ): Tags abstract operator fun <T : Any> get(key: KClass<T>): T? } /** An empty tags. This is always the tail of a [LinkedTags] chain. */ internal object EmptyTags : Tags() { override fun <T : Any> plus( key: KClass<T>, value: T?, ): Tags = when {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 24 11:37:46 UTC 2025 - 3.9K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt
.toDouble(), ).isCloseTo(elapsedMs.toDouble(), 100.0) } return result } fun recordedEventTypes() = eventSequence.map { it::class } fun clearAllEvents() { while (eventSequence.isNotEmpty()) { takeEvent() } } internal fun logEvent(e: CallEvent) { for (lock in forbiddenLocks) { assertThat(Thread.holdsLock(lock), lock.toString()).isFalse()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 4.5K bytes - Viewed (0) -
.teamcity/src/main/kotlin/model/FunctionalTestBucketModel.kt
subprojects.map { it.name }, ) override fun getName(testCoverage: TestCoverage) = truncateName("${testCoverage.asName()} (${subprojects.joinToString(",") { it.name }})") override fun getDescription(testCoverage: TestCoverage) = "${testCoverage.asName()} for ${subprojects.joinToString(", ") { it.name }}"Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Thu Apr 10 15:09:32 UTC 2025 - 3.4K bytes - Viewed (0) -
container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt
@Testcontainers class BasicProxyTest { @Container val mockServer: MockServerContainer = MockServerContainer(MOCKSERVER_IMAGE) .withNetworkAliases("mockserver") @Test fun testOkHttpDirect() { testRequest { val client = OkHttpClient() val response = client .newCall( Request((mockServer.endpoint + "/person?name=peter").toHttpUrl()),Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 6.2K bytes - Viewed (1) -
.teamcity/src/main/kotlin/configurations/StageTriggers.kt
} } } } fun stageTriggerId( model: CIBuildModel, stage: Stage, os: Os? = null, ) = stageTriggerId(model, stage.stageName, os) fun stageTriggerUuid( model: CIBuildModel, stage: Stage, os: Os? = null, ) = stageTriggerUuid(model, stage.stageName, os) fun stageTriggerId( model: CIBuildModel, stageName: StageName,Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Tue Dec 30 12:17:39 UTC 2025 - 7.2K bytes - Viewed (0)