Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for reportedContentLength (0.06 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/ExchangeCodec.kt

       * response code. Otherwise this method never returns null.
       */
      @Throws(IOException::class)
      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. */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Jul 29 21:11:09 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

        return if (expectContinue && responseBuilder.code == HTTP_CONTINUE) {
          null
        } else {
          responseBuilder
        }
      }
    
      override fun reportedContentLength(response: Response): Long =
        when {
          !response.promisesBody() -> 0L
          else -> response.headersContentLength()
        }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Jul 29 21:11:09 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top