Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for existent (0.17 sec)

  1. deploy_website.sh

    # The website is built using MkDocs with the Material theme.
    # https://squidfunk.github.io/mkdocs-material/
    # It requires python3 to run.
    
    set -ex
    
    REPO="******@****.***:square/okhttp.git"
    DIR=temp-clone
    
    # Delete any existing temporary website clone
    rm -rf $DIR
    
    # Clone the current repo into temp folder
    git clone $REPO $DIR
    # Replace `git clone` with these lines to hack on the website locally
    # cp -a . "../okhttp-website"
    Shell Script
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Nov 20 15:26:12 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

      /** Close and remove all idle connections in the pool. */
      fun evictAll() {
        delegate.evictAll()
      }
    
      /**
       * Sets a policy that applies to [address].
       * Overwrites any existing policy for that address.
       */
      @ExperimentalOkHttpApi
      fun setPolicy(
        address: Address,
        policy: AddressPolicy,
      ) {
        delegate.setPolicy(address, policy)
      }
    
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  3. docs/contribute/concurrency.md

    connections require a fair amount of overhead and added latency. OkHttp will make every effort to reuse existing connections to avoid this overhead and added latency.
    
    Every OkHttpClient uses a connection pool. Its job is to maintain a reference to all open connections. When an HTTP request is started, OkHttp will attempt to reuse an existing connection from the pool. If there are no existing connections, a new one is created and put into the connection pool. For HTTP/2, the connection can be...
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Headers.kt

         * found, the existing values are replaced.
         */
        operator fun set(
          name: String,
          value: Date,
        ) = set(name, value.toHttpDateString())
    
        /**
         * Set a field with the specified instant. If the field is not found, it is added. If the field
         * is found, the existing values are replaced.
         */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  5. docs/releasing.md

    Releasing
    =========
    
    ### Prerequisite: Sonatype (Maven Central) Account
    
    Create an account on the [Sonatype issues site][sonatype_issues]. Ask an existing publisher to open
    an issue requesting publishing permissions for `com.squareup` projects.
    
    
    Cutting a Release
    -----------------
    
    1. Update `CHANGELOG.md`.
    
    2. Set versions:
    
        ```
        export RELEASE_VERSION=X.Y.Z
        export NEXT_VERSION=X.Y.Z-SNAPSHOT
        ```
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Dec 26 22:07:16 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

        taskRunner.lock.withLock {
          // If the queue is already idle, that's easy.
          if (activeTask == null && futureTasks.isEmpty()) {
            return CountDownLatch(0)
          }
    
          // If there's an existing AwaitIdleTask, use it. This is necessary when the executor is
          // shutdown but still busy as we can't enqueue in that case.
          val existingTask = activeTask
          if (existingTask is AwaitIdleTask) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Cache.kt

      /**
       * Returns an iterator over the URLs in this cache. This iterator doesn't throw
       * `ConcurrentModificationException`, but if new responses are added while iterating, their URLs
       * will not be returned. If existing responses are evicted during iteration, they will be absent
       * (unless they were already returned).
       *
       * The iterator supports [MutableIterator.remove]. Removing a URL from the iterator evicts the
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

     *     failed connect attempts (such as trying the next [ConnectionSpec]), or as attempts that lost
     *     a race in fast follow-up.
     *
     *  4. If there's no existing connection, make a list of routes (which may require blocking DNS
     *     lookups) and attempt a new connection them. When failures occur, retries iterate the list of
     *     available routes.
     *
    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)
  9. okhttp/src/main/kotlin/okhttp3/Dispatcher.kt

      }
    
      internal fun enqueue(call: AsyncCall) {
        this.withLock {
          readyAsyncCalls.add(call)
    
          // Mutate the AsyncCall so that it shares the AtomicInteger of an existing running call to
          // the same host.
          if (!call.call.forWebSocket) {
            val existingCall = findExistingCallWithHost(call.host)
            if (existingCall != null) call.reuseCallsPerHostFrom(existingCall)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 9K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

        val localNextRouteToTry = nextRouteToTry
        if (localNextRouteToTry != null) {
          nextRouteToTry = null
          return planConnectToRoute(localNextRouteToTry)
        }
    
        // Use a route from an existing route selection.
        val existingRouteSelection = routeSelection
        if (existingRouteSelection != null && existingRouteSelection.hasNext()) {
          return planConnectToRoute(existingRouteSelection.next())
        }
    
    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)
Back to top