Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for calling (0.77 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

     * deterministic.
     *
     * This class ensures that at most one thread is running at a time. This is initially the JUnit test
     * thread, which yields its execution privilege while calling [runTasks], [runNextTask], or
     * [advanceUntil]. These functions don't return until the task threads are all idle.
     *
     * Task threads release their execution privilege in these ways:
     *
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

        }
    
        if (queue.futureTasks.isNotEmpty()) {
          readyQueues.add(queue)
        }
      }
    
      /**
       * Returns an immediately-executable task for the calling thread to execute, sleeping as necessary
       * until one is ready. If there are no ready queues, or if other threads have everything under
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Request.kt

            this.url = url
          }
    
        /**
         * Sets the URL target of this request.
         *
         * @throws IllegalArgumentException if [url] is not a valid HTTP or HTTPS URL. Avoid this
         *     exception by calling [HttpUrl.parse]; it returns null for invalid URLs.
         */
        open fun url(url: String): Builder {
          return url(canonicalUrl(url).toHttpUrl())
        }
    
        /**
         * Sets the URL target of this request.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Cache.kt

     *         .maxStale(365, TimeUnit.DAYS)
     *         .build())
     *     .url("http://publicobject.com/helloworld.txt")
     *     .build();
     * ```
     *
     * The [CacheControl] class can configure request caching directives and parse response caching
     * directives. It even offers convenient constants [CacheControl.FORCE_NETWORK] and
     * [CacheControl.FORCE_CACHE] that address the use cases above.
     *
     * [rfc_7234]: http://tools.ietf.org/html/rfc7234
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_4x.md

    been, leading to rare cases of infinite retries. Please upgrade to this release!
    
     *  Fix: don't return stale DNS entries in `DnsOverHttps`. We were caching DNS results indefinitely
        rather than the duration specified in the response's cache-control header.
     *  Fix: Verify certificate IP addresses in canonical form. When a server presents a TLS certificate
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

          }
        }
    
        val result = timeoutExit(e)
        if (e != null) {
          eventListener.callFailed(this, result!!)
        } else {
          eventListener.callEnd(this)
        }
        return result
      }
    
      /**
       * Remove this call from the connection's list of allocations. Returns a socket that the caller
       * should close.
       */
    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)
  7. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          }
    
          return toString()
        }
      }
    
      fun newBuilder(): Builder = Builder(this)
    
      /**
       * Builds a cookie. The [name], [value], and [domain] values must all be set before calling
       * [build].
       */
      class Builder() {
        private var name: String? = null
        private var value: String? = null
        private var expiresAt = MAX_DATE
        private var domain: String? = null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. CHANGELOG.md

        include this file on GraalVM.
    
    
    ## Version 5.0.0-alpha.4
    
    _2022-02-01_
    
    **This release introduces fast fallback to better support mixed IPv4+IPv6 networks.** Fast fallback
    is what we're calling our implementation of Happy Eyeballs, [RFC 8305][rfc_8305]. With this
    feature OkHttp will attempt both IPv6 and IPv4 connections concurrently, keeping whichever connects
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         *
         * * **Unreachable proxy servers.** A [ProxySelector] can be used to
         *   attempt multiple proxy servers in sequence, eventually falling back to a direct
         *   connection.
         *
         * Set this to false to avoid retrying requests when doing so is destructive. In this case the
         * calling application should do its own recovery of connectivity failures.
         */
        fun retryOnConnectionFailure(retryOnConnectionFailure: Boolean) =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CallTest.kt

    import mockwebserver3.SocketPolicy.NoResponse
    import mockwebserver3.SocketPolicy.StallSocketAtStart
    import mockwebserver3.junit5.internal.MockWebServerInstance
    import okhttp3.CallEvent.CallEnd
    import okhttp3.CallEvent.ConnectStart
    import okhttp3.CallEvent.ConnectionAcquired
    import okhttp3.CallEvent.ConnectionReleased
    import okhttp3.CallEvent.ResponseFailed
    import okhttp3.CertificatePinner.Companion.pin
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
Back to top