Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for openResponseBody (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

              // Connection is upgrading, but we need to ensure interceptors see a non-null response body.
              response.stripBody()
            } else {
              response.newBuilder()
                .body(exchange.openResponseBody(response))
                .build()
            }
          if ("close".equals(response.request.header("Connection"), ignoreCase = true) ||
            "close".equals(response.header("Connection"), ignoreCase = true)
          ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

          trackFailure(e)
          throw e
        }
      }
    
      fun responseHeadersEnd(response: Response) {
        eventListener.responseHeadersEnd(call, response)
      }
    
      @Throws(IOException::class)
      fun openResponseBody(response: Response): ResponseBody {
        try {
          val contentType = response.header("Content-Type")
          val contentLength = codec.reportedContentLength(response)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top