- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for openResponseBodySource (0.13 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/ExchangeCodec.kt
fun readResponseHeaders(expectContinue: Boolean): Response.Builder? @Throws(IOException::class) fun reportedContentLength(response: Response): Long @Throws(IOException::class) fun openResponseBodySource(response: Response): Source /** Returns the trailers after the HTTP response if they're ready. May be empty. */ @Throws(IOException::class) fun peekTrailers(): Headers? /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 21:11:09 UTC 2025 - 3.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt
} } override fun reportedContentLength(response: Response): Long = when { !response.promisesBody() -> 0L else -> response.headersContentLength() } override fun openResponseBodySource(response: Response): Source = stream!!.source override fun peekTrailers(): Headers? = stream!!.peekTrailers() override fun cancel() { canceled = true stream?.closeLater(ErrorCode.CANCEL)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 21:11:09 UTC 2025 - 7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
when { !response.promisesBody() -> 0L 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 -> {
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/connection/Exchange.kt
fun openResponseBody(response: Response): ResponseBody { try { val contentType = response.header("Content-Type") val contentLength = codec.reportedContentLength(response) val rawSource = codec.openResponseBodySource(response) val source = ResponseBodySource(rawSource, contentLength) return RealResponseBody(contentType, contentLength, source.buffer()) } catch (e: IOException) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 22:04:11 UTC 2025 - 9.7K bytes - Viewed (0)