- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for headersContentLength (0.06 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
response.isChunked -> -1L else -> response.headersContentLength() } override fun openResponseBodySource(response: Response): Source = when { !response.promisesBody() -> newFixedLengthSource(response.request.url, 0) response.isChunked -> newChunkedSource(response.request.url) else -> { val contentLength = response.headersContentLength() if (contentLength != -1L) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 17.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt
currentThread.name = name try { block() } finally { currentThread.name = oldName } } /** Returns the Content-Length as reported by the response headers. */ internal fun Response.headersContentLength(): Long = headers["Content-Length"]?.toLongOrDefault(-1L) ?: -1L /** Returns an immutable wrap of this. */ @Suppress("NOTHING_TO_INLINE")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 10.2K bytes - Viewed (0)