- Sort Score
- Result 10 results
- Languages All
Results 401 - 410 of 567 for fun (0.01 sec)
-
okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt
} } return@let null } ?: "application/x-www-form-urlencoded" return mimeType.toMediaTypeOrNull() } private fun isSpecialHeader(s: String): Boolean = s.equals("Content-Type", ignoreCase = true) fun Main.commonRun() { client = createClient() val request = createRequest() try { val response = client!!.newCall(request).execute() if (showHeaders) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskLogger.kt
package okhttp3.internal.concurrent import java.util.logging.Level import java.util.logging.Logger internal inline fun Logger.taskLog( task: Task, queue: TaskQueue, messageBlock: () -> String, ) { if (isLoggable(Level.FINE)) { log(task, queue, messageBlock()) } } internal inline fun <T> Logger.logElapsed( task: Task, queue: TaskQueue, block: () -> T, ): T { var startNs = -1L
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 2.6K bytes - Viewed (0) -
.teamcity/src/main/kotlin/common/Os.kt
defaultArch = Arch.AARCH64, ), ; fun escapeKeyValuePair( key: String, value: String, ) = if (this == WINDOWS) """$key="$value"""" else """"$key=$value"""" fun asName() = name.lowercase().toCapitalized() fun javaInstallationLocations(arch: Arch = Arch.AMD64): List<String> { val paths = when {
Registered: Wed Sep 10 11:36:15 UTC 2025 - Last Modified: Mon Aug 25 20:21:47 UTC 2025 - 3.8K bytes - Viewed (0) -
okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourcesHttpTest.kt
val clientTestRule = OkHttpClientTestRule() private val listener = EventSourceRecorder() private val client = clientTestRule.newClient() @AfterEach fun after() { listener.assertExhausted() } @Test fun processResponse() { server.enqueue( MockResponse .Builder() .body( """ |data: hey | |
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 13:49:38 UTC 2025 - 3.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheRequest.kt
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 769 bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Connection.kt
*/ interface Connection { /** Returns the route used by this connection. */ fun route(): Route /** * Returns the socket that this connection is using. Returns an * [SSL socket][javax.net.ssl.SSLSocket] if this connection is HTTPS. If this is an HTTP/2 * connection the socket may be shared by multiple concurrent calls. */ fun socket(): Socket /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 4.3K bytes - Viewed (0) -
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/PlatformInitializer.kt
*/ class PlatformInitializer : Initializer<Platform> { override fun create(context: Context): Platform { PlatformRegistry.applicationContext = context return Platform.get() } override fun dependencies(): List<Class<Initializer<*>>> = listOf()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Dec 31 14:50:53 UTC 2024 - 1K bytes - Viewed (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FastFallbackExchangeFinder.kt
}, ) return null } private fun awaitTcpConnect( timeout: Long, unit: TimeUnit, ): ConnectResult? { if (tcpConnectsInFlight.isEmpty()) return null val result = connectResults.poll(timeout, unit) ?: return null tcpConnectsInFlight.remove(result.plan) return result } private fun cancelInFlightConnects() { for (plan in tcpConnectsInFlight) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/concurrent/TaskRunnerRealBackendTest.kt
} } private val backend = TaskRunner.RealBackend(threadFactory) private val taskRunner = TaskRunner(backend) private val queue = taskRunner.newQueue() @AfterEach fun tearDown() { backend.shutdown() } @Test fun test() { val t1 = System.nanoTime() / 1e6 val delays = mutableListOf(TimeUnit.MILLISECONDS.toNanos(1000), -1L) queue.schedule("task", TimeUnit.MILLISECONDS.toNanos(750)) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt
* https://tersesystems.com/blog/2018/09/08/keymanagers-and-keystores/ * * Install OpenSC separately. On a mac `brew cast install opensc`. */ @SuppressSignatureCheck class YubikeyClientAuth { fun run() { // The typical PKCS11 slot, may vary with different hardware. val slot = 0 val config = "--name=OpenSC\nlibrary=/Library/OpenSC/lib/opensc-pkcs11.so\nslot=$slot\n"
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 4.2K bytes - Viewed (0)