Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for initExchange (0.19 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectInterceptor.kt

     */
    object ConnectInterceptor : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val realChain = chain as RealInterceptorChain
        val exchange = realChain.call.initExchange(realChain)
        val connectedChain = realChain.copy(exchange = exchange)
        return connectedChain.proceed(realChain.request)
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

      }
    
      @Throws(IOException::class)
      fun readResponseHeaders(expectContinue: Boolean): Response.Builder? {
        try {
          val result = codec.readResponseHeaders(expectContinue)
          result?.initExchange(this)
          return result
        } catch (e: IOException) {
          eventListener.responseFailed(call, e)
          trackFailure(e)
          throw e
        }
      }
    
      fun responseHeadersEnd(response: Response) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.2K bytes
    - Viewed (2)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

              else -> SequentialExchangeFinder(routePlanner)
            }
        }
      }
    
      /** Finds a new or pooled connection to carry a forthcoming request and response. */
      internal fun initExchange(chain: RealInterceptorChain): Exchange {
        this.withLock {
          check(expectMoreExchanges) { "released" }
          check(!responseBodyOpen)
          check(!requestBodyOpen)
        }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  4. okhttp/src/main/kotlin/okhttp3/Response.kt

          }
    
        open fun receivedResponseAtMillis(receivedResponseAtMillis: Long) =
          apply {
            this.receivedResponseAtMillis = receivedResponseAtMillis
          }
    
        internal fun initExchange(exchange: Exchange) {
          this.exchange = exchange
          this.trailersFn = { exchange.trailers() }
        }
    
        open fun build(): Response {
          check(code >= 0) { "code < 0: $code" }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
Back to top