- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for downTo (0.24 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt
internal fun cancelAllAndDecide(): Boolean { if (activeTask != null && activeTask!!.cancelable) { cancelActiveTask = true } var tasksCanceled = false for (i in futureTasks.size - 1 downTo 0) { if (futureTasks[i].cancelable) { taskRunner.logger.taskLog(futureTasks[i], this) { "canceled" } tasksCanceled = true futureTasks.removeAt(i) } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt
append("\n") } } } internal fun commonHeadersGet( namesAndValues: Array<String>, name: String, ): String? { for (i in namesAndValues.size - 2 downTo 0 step 2) { if (name.equals(namesAndValues[i], ignoreCase = true)) { return namesAndValues[i + 1] } } return null } internal fun Headers.Builder.commonAdd( name: String,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt
lock.withLock { return busyQueues + readyQueues } } fun cancelAll() { lock.assertHeld() for (i in busyQueues.size - 1 downTo 0) { busyQueues[i].cancelAllAndDecide() } for (i in readyQueues.size - 1 downTo 0) { val queue = readyQueues[i] queue.cancelAllAndDecide() if (queue.futureTasks.isEmpty()) { readyQueues.removeAt(i) } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 29 00:33:04 GMT 2024 - 10.6K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt
val lengthBitCount = 64 - java.lang.Long.numberOfLeadingZeros(length) val lengthByteCount = (lengthBitCount + 7) / 8 sink.writeByte(0b1000_0000 or lengthByteCount) for (shift in (lengthByteCount - 1) * 8 downTo 0 step 8) { sink.writeByte((length shr shift).toInt()) } } // Write the payload. sink.writeAll(content) } /**
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt
*/ internal fun String.indexOfLastNonAsciiWhitespace( startIndex: Int = 0, endIndex: Int = length, ): Int { for (i in endIndex - 1 downTo startIndex) { when (this[i]) { '\t', '\n', '\u000C', '\r', ' ' -> Unit else -> return i + 1 } } return startIndex }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11K bytes - Viewed (0) -
mockwebserver/README.md
RecordedRequest request3 = server.takeRequest(); assertEquals("/v1/chat/messages/3", request3.getPath()); // Shut down the server. Instances cannot be reused. server.shutdown(); } ``` Your unit tests might move the `server` into a field so you can shut it down from your test's `tearDown()`. ### API #### MockResponse Mock responses default to an empty response body and a `200` status code.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Dec 17 15:34:10 GMT 2023 - 5K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt
fileToClose?.closeQuietly() } } companion object { // TODO(jwilson): what to do about timeouts? They could be different and unfortunately when any // timeout is hit we like to tear down the whole stream. private const val SOURCE_UPSTREAM = 1 private const val SOURCE_FILE = 2 @JvmField val PREFIX_CLEAN = "OkHttp cache v1\n".encodeUtf8()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt
val call: RealCall get() = this@RealCall /** * Attempt to enqueue this async call on [executorService]. This will attempt to clean up * if the executor has been shut down by reporting the call as failed. */ fun executeOn(executorService: ExecutorService) { client.dispatcher.assertThreadDoesntHoldLock() var success = false try {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 17.9K bytes - Viewed (2) -
okhttp/src/test/java/okhttp3/HttpUrlTest.kt
// // HttpUrl is quite lenient with what characters it accepts. In particular, characters like '{' // and '"' are permitted but unlikely to occur in real-world URLs. Unfortunately we can't just // lock it down due to URL templating: "http://{env}.{dc}.example.com". UrlComponentEncodingTester.newInstance() .nonPrintableAscii(Encoding.FORBIDDEN) .nonAscii(Encoding.PUNYCODE) .override(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 67.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/HttpUrl.kt
plusIsSpace = true, ), ) } private fun removeAllCanonicalQueryParameters(canonicalName: String) { for (i in encodedQueryNamesAndValues!!.size - 2 downTo 0 step 2) { if (canonicalName == encodedQueryNamesAndValues!![i]) { encodedQueryNamesAndValues!!.removeAt(i + 1) encodedQueryNamesAndValues!!.removeAt(i)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 63.5K bytes - Viewed (1)