Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for openResponseBodySource (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. 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?
    
      /**
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Jul 29 21:11:09 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  2. 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)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Jul 29 21:11:09 GMT 2025
    - 7K bytes
    - Click Count (0)
  3. 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 -> {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 17.5K bytes
    - Click Count (7)
Back to Top