- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for acquire (1.54 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt
* was acquired, or null if no connection was acquired. The acquired connection will also be * given to [connectionUser] who may (for example) assign it to a [RealCall.connection]. * * This confirms the returned connection is healthy before returning it. If this encounters any * unhealthy connections in its search, this will clean them up. *
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 16.2K bytes - Viewed (0) -
docs/changelogs/changelog_4x.md
* Fix: Retain binary-compatibility in `okhttp3.internal.HttpMethod`. Naughty third party SDKs import this and we want to ease upgrades for their users. ## Version 4.0.0-RC2 _2019-06-21_ * New: Require Kotlin 1.3.40. * New: Change the Kotlin API from `File.toRequestBody()` to `File.asRequestBody()` and `BufferedSource.toResponseBody()` to `BufferedSource.asResponseBody()`. If the returned value
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 17 13:25:31 GMT 2024 - 25.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/CacheControl.kt
apply { val maxAgeSeconds = maxAge.inWholeSeconds require(maxAgeSeconds >= 0) { "maxAge < 0: $maxAgeSeconds" } this.maxAgeSeconds = maxAgeSeconds.commonClampToInt() } fun maxStale(maxStale: Duration) = apply { val maxStaleSeconds = maxStale.inWholeSeconds require(maxStaleSeconds >= 0) { "maxStale < 0: $maxStaleSeconds" }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 10K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt
flags: Int, ) { if (type != TYPE_WINDOW_UPDATE && logger.isLoggable(FINE)) { logger.fine(frameLog(false, streamId, length, type, flags)) } require(length <= maxFrameSize) { "FRAME_SIZE_ERROR length > $maxFrameSize: $length" } require(streamId and 0x80000000.toInt() == 0) { "reserved bit set: $streamId" } sink.writeMedium(length) sink.writeByte(type and 0xff) sink.writeByte(flags and 0xff)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 11.3K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
) : SerialTask { override fun start() { taskRunner.assertThreadHoldsLock() require(currentTask == this) activeThreads++ tasksExecutor.execute { taskRunner.assertThreadDoesntHoldLock() require(currentTask == this) try { runnable.run() require(currentTask == this) { "unexpected current task: $currentTask" } } finally {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 29 00:33:04 GMT 2024 - 12.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cookie.kt
// seconds are not supported by this syntax. require(year >= 1601) require(month != -1) require(dayOfMonth in 1..31) require(hour in 0..23) require(minute in 0..59) require(second in 0..59) GregorianCalendar(UTC).apply { isLenient = false set(Calendar.YEAR, year)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:12:05 GMT 2024 - 23.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt
private var receivedPongCount = 0 /** True if we have sent a ping that is still awaiting a reply. */ private var awaitingPong = false init { require("GET" == originalRequest.method) { "Request must be GET: ${originalRequest.method}" } this.key = ByteArray(16).apply { random.nextBytes(this) }.toByteString().base64() }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 14:21:25 GMT 2024 - 22.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt
} else -> null } } // If the call's connection wasn't released, reuse it. We don't call connectionAcquired() here // because we already acquired it. if (connectionUser.candidateConnection() != null) { check(toClose == null) return ReusePlan(candidate) } // The call's connection was released. toClose?.closeQuietly()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 12K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt
if (stream.isOpen) { streams[streamId] = stream } } if (associatedStreamId == 0) { writer.headers(outFinished, streamId, requestHeaders) } else { require(!client) { "client streams shouldn't have associated stream IDs" } // HTTP/2 has a PUSH_PROMISE frame. writer.pushPromise(associatedStreamId, streamId, requestHeaders) } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 32.6K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
require(Protocol.H2_PRIOR_KNOWLEDGE !in protocolList || protocolList.size == 1) { "protocols containing h2_prior_knowledge cannot use other protocols: $protocolList" } require(Protocol.HTTP_1_1 in protocolList || Protocol.H2_PRIOR_KNOWLEDGE in protocolList) { "protocols doesn't contain http/1.1: $protocolList" }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Mar 31 17:16:15 GMT 2024 - 37.4K bytes - Viewed (0)