Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for isSatisfied (1.99 sec)

  1. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     */
    fun interface Authenticator {
      /**
       * Returns a request that includes a credential to satisfy an authentication challenge in
       * [response]. Returns null if the challenge cannot be satisfied.
       *
       * The route is best effort, it currently may not always be provided even when logically
       * available. It may also not be provided when an authenticator is re-used manually in an
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

      /**
       * Prepare for a potential trip through all of this call's network interceptors. This prepares to
       * find an exchange to carry the request.
       *
       * Note that an exchange will not be needed if the request is satisfied by the cache.
       *
       * @param newRoutePlanner true if this is not a retry and new routing can be performed.
       */
      fun enterNetworkInterceptorExchange(
        request: Request,
        newRoutePlanner: Boolean,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        lock.withLock {
          val oldLimit = allocationLimit
          allocationLimit = settings.getMaxConcurrentStreams()
    
          if (allocationLimit < oldLimit) {
            // We might need new connections to keep policies satisfied
            connectionPool.scheduleOpener(route.address)
          } else if (allocationLimit > oldLimit) {
            // We might no longer need some connections
            connectionPool.scheduleCloser()
          }
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

                unverifiedHandshake.peerCertificates,
                address.url.host,
              )
            }
          this.handshake = handshake
    
          // Check that the certificate pinner is satisfied by the certificates presented.
          certificatePinner.check(address.url.host) {
            handshake.peerCertificates.map { it as X509Certificate }
          }
    
          // Success! Save the handshake and the ALPN protocol.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

    import okhttp3.internal.commonToString
    
    /**
     * A Cache-Control header with cache directives from a server or client. These directives set policy
     * on what responses can be stored, and which requests can be satisfied by those stored responses.
     *
     * See [RFC 7234, 5.2](https://tools.ietf.org/html/rfc7234#section-5.2).
     */
    class CacheControl internal constructor(
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        if (strategy == ResumePriority.AfterOtherTasks && otherTasksStarted) {
          return yieldUntil(strategy, condition)
        }
      }
    
      private enum class ResumePriority {
        /** Resumes as soon as the condition is satisfied. */
        BeforeOtherTasks,
    
        /** Resumes after the already-enqueued tasks. */
        AfterEnqueuedTasks,
    
        /** Resumes after all other tasks, including tasks enqueued while yielding. */
        AfterOtherTasks,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/RequestBody.kt

       *    has since been closed by the server.
       *  * A client timeout (HTTP 408).
       *  * A authorization challenge (HTTP 401 and 407) that is satisfied by the [Authenticator].
       *  * A retryable server failure (HTTP 503 with a `Retry-After: 0` response header).
       *  * A misdirected request (HTTP 421) on a coalesced connection.
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 25 14:41:37 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt

                challenge.charset,
              )
            return request.newBuilder()
              .header(credentialHeader, credential)
              .build()
          }
        }
    
        return null // No challenges were satisfied!
      }
    
      @Throws(IOException::class)
      private fun Proxy.connectToInetAddress(
        url: HttpUrl,
        dns: Dns,
      ): InetAddress {
        return when (type()) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

            concurrentCallCapacity += connection.allocationLimit
          }
    
          // The policy was satisfied by existing connections, don't run again
          if (concurrentCallCapacity >= state.policy.minimumConcurrentCalls) return -1L
        }
    
        // If we got here then the policy was not satisfied -- open a connection!
        try {
          val connection = exchangeFinderFactory(this, state.address, PoolConnectionUser).find()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

            }
            return CacheStrategy(null, builder.build())
          }
    
          // Find a condition to add to the request. If the condition is satisfied, the response body
          // will not be transmitted.
          val conditionName: String
          val conditionValue: String?
          when {
            etag != null -> {
              conditionName = "If-None-Match"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
Back to top