Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for openResponseBodySource (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

        return when {
          !response.promisesBody() -> 0L
          response.isChunked -> -1L
          else -> response.headersContentLength()
        }
      }
    
      override fun openResponseBodySource(response: Response): Source {
        return when {
          !response.promisesBody() -> newFixedLengthSource(0)
          response.isChunked -> newChunkedSource(response.request.url)
          else -> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top