Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        oldDelegate.clearTimeout()
      }
    
      /**
       * The response body from a CONNECT should be empty, but if it is not then we should consume it
       * before proceeding.
       */
      fun skipConnectBody(response: Response) {
        val contentLength = response.headersContentLength()
        if (contentLength == -1L) return
        val body = newFixedLengthSource(contentLength)
        body.skipAll(Int.MAX_VALUE, MILLISECONDS)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

          tunnelCodec.finishRequest()
          val response =
            tunnelCodec.readResponseHeaders(false)!!
              .request(nextRequest)
              .build()
          tunnelCodec.skipConnectBody(response)
    
          when (response.code) {
            HttpURLConnection.HTTP_OK -> return null
    
            HttpURLConnection.HTTP_PROXY_AUTH -> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top