- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for Clarke (0.18 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt
return try { toLong() } catch (_: NumberFormatException) { defaultValue } } /** * Returns this as a non-negative integer, or 0 if it is negative, or [Int.MAX_VALUE] if it is too * large, or [defaultValue] if it cannot be parsed. */ internal fun String?.toNonNegativeInt(defaultValue: Int): Int { try { val value = this?.toLong() ?: return defaultValue return when {
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) -
docs/changelogs/changelog_3x.md
Because the release includes breaking API changes, we're changing the project's package name from `com.squareup.okhttp` to `okhttp3`. This should make it possible for large applications to migrate incrementally. The Maven group ID is now `com.squareup.okhttp3`. For an explanation of this strategy, see Jake Wharton's post, [Java Interoperability Policy for Major Version Updates][major_versions].
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 14:55:54 GMT 2022 - 50.8K bytes - Viewed (0) -
docs/changelogs/changelog_2x.md
used `Throwable`. * Fix: Fixed a caching bug where we weren't storing rewritten request headers like `Accept-Encoding`. * Fix: Fixed bugs in handling the SPDY window size. This was stalling certain large downloads * Update the language level to Java 7. (OkHttp requires Android 2.3+ or Java 7+.) ## Version 2.0.0-RC2 _2014-06-11_ This update fixes problems in 2.0.0-RC1. Read the 2.0.0-RC1 changes for
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 26.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt
val clientTestRule = OkHttpClientTestRule() private lateinit var server: MockWebServer private lateinit var client: OkHttpClient @BeforeEach fun setUp() { // Sockets on some platforms can have large buffers that mean writes do not block when // required. These socket factories explicitly set the buffer sizes on sockets created. server = MockWebServer() server.serverSocketFactory =
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.6K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
val newLimit = if (header.length != -1L) byteCount + header.length else -1L if (pushedLimit != -1L && newLimit > pushedLimit) { throw ProtocolException("enclosed object too large") } limit = newLimit constructed = header.constructed if (name != null) path += name try { val result = block(header) // The object processed bytes beyond its range.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt
private val listRead = AtomicBoolean(false) /** Used for concurrent threads reading the list for the first time. */ private val readCompleteLatch = CountDownLatch(1) // The lists are held as a large array of UTF-8 bytes. This is to avoid allocating lots of strings // that will likely never be used. Each rule is separated by '\n'. Please see the // PublicSuffixListGenerator class for how these lists are generated.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskLogger.kt
* it returns is "s". For values in [-499..499] this returns " 0 µs". * * The returned string attempts to be column-aligned to 6 characters. For negative and large values * the returned string may be longer. */ fun formatDuration(ns: Long): String { val s = when { ns <= -999_500_000 -> "${(ns - 500_000_000) / 1_000_000_000} s "
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt
this.cancelMode = mode.first this.connectionType = mode.second if (connectionType == H2) { platform.assumeHttp2Support() } // Sockets on some platforms can have large buffers that mean writes do not block when // required. These socket factories explicitly set the buffer sizes on sockets created. server = MockWebServer() server.serverSocketFactory =
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 9.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt
} else { val dynamicTableIndex = dynamicTableIndex(index - STATIC_HEADER_TABLE.size) if (dynamicTableIndex < 0 || dynamicTableIndex >= dynamicTable.size) { throw IOException("Header index too large ${index + 1}") } headerList += dynamicTable[dynamicTableIndex]!! } } // referencedHeaders is relative to nextHeaderIndex + 1.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 22.5K bytes - Viewed (1) -
docs/recipes.md
Download a file, print its headers, and print its response body as a string. The `string()` method on response body is convenient and efficient for small documents. But if the response body is large (greater than 1 MiB), avoid `string()` because it will load the entire document into memory. In that case, prefer to process the body as a stream. === ":material-language-kotlin: Kotlin" ```kotlin
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Feb 18 08:52:22 GMT 2022 - 40.2K bytes - Viewed (1)