Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for sameHostAndPort (0.24 sec)

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

      @Throws(IOException::class)
      override fun proceed(request: Request): Response {
        check(index < interceptors.size)
    
        calls++
    
        if (exchange != null) {
          check(exchange.finder.routePlanner.sameHostAndPort(request.url)) {
            "network interceptor ${interceptors[index - 1]} must retain the same host and port"
          }
          check(calls == 1) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

                noNewExchangesEvent = !candidate.noNewExchanges
                candidate.noNewExchanges = true
                connectionUser.releaseConnectionNoEvents()
              }
              candidate.noNewExchanges || !sameHostAndPort(candidate.route().address.url) -> {
                connectionUser.releaseConnectionNoEvents()
              }
              else -> null
            }
          }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

       * detect if followups need to do a full connection-finding process including DNS resolution, and
       * certificate pin checks.
       */
      fun sameHostAndPort(url: HttpUrl): Boolean
    
      /**
       * A plan holds either an immediately-usable connection, or one that must be connected first.
       * These steps are split so callers can call [connectTcp] on a background thread if attempting
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/FakeRoutePlanner.kt

        return result
      }
    
      override fun hasNext(failedConnection: RealConnection?): Boolean {
        return deferredPlans.isNotEmpty() || nextPlanIndex < plans.size || autoGeneratePlans
      }
    
      override fun sameHostAndPort(url: HttpUrl): Boolean {
        return url.host == address.url.host && url.port == address.url.port
      }
    
      override fun close() {
        factory.close()
      }
    
      inner class FakePlan(
        val id: Int,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  5. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/connection/RealRoutePlanner;->planReusePooledConnection$okhttp(Lokhttp3/internal/connection/ConnectPlan;Ljava/util/List;)Lokhttp3/internal/connection/ReusePlan;
    HSPLokhttp3/internal/connection/RealRoutePlanner;->sameHostAndPort(Lokhttp3/HttpUrl;)Z
    HSPLokhttp3/internal/connection/ReusePlan;-><init>(Lokhttp3/internal/connection/RealConnection;)V
    HSPLokhttp3/internal/connection/ReusePlan;->handleSuccess()Lokhttp3/internal/connection/RealConnection;
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
Back to top