Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for This (0.17 sec)

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

        this.exchange = result
        this.withLock {
          this.requestBodyOpen = true
          this.responseBodyOpen = true
        }
    
        if (canceled) throw IOException("Canceled")
        return result
      }
    
      fun acquireConnectionNoEvents(connection: RealConnection) {
        connection.lock.assertHeld()
    
        check(this.connection == null)
        this.connection = connection
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

      /**
       * If true, no new exchanges can be created on this connection. It is necessary to set this to
       * true when removing a connection from the pool; otherwise a racing caller might get it from the
       * pool when it shouldn't. Symmetrically, this must always be checked before returning a
       * connection from the pool.
       *
       * Once true this is always true. Guarded by this.
       */
      var noNewExchanges = false
    
      /**
    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)
  3. okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt

     * transforms the file into an efficient format used by OkHttp.
     *
     *
     * The intent is to use this class to update the list periodically by manually running the main
     * method. This should be run from the top-level okhttp directory.
     *
     *
     * The resulting file is used by [PublicSuffixDatabase].
     */
    class PublicSuffixListGenerator(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        get() = protocol != null
    
      private fun copy(
        attempt: Int = this.attempt,
        tunnelRequest: Request? = this.tunnelRequest,
        connectionSpecIndex: Int = this.connectionSpecIndex,
        isTlsFallback: Boolean = this.isTlsFallback,
      ): ConnectPlan {
        return ConnectPlan(
          taskRunner = taskRunner,
          connectionPool = connectionPool,
          readTimeoutMillis = readTimeoutMillis,
    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-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

          proxySelector = proxySelector,
        )
      }
    
      fun newHttpsAddress(
        uriHost: String = this.uriHost,
        uriPort: Int = this.uriPort,
        proxy: Proxy? = null,
        proxySelector: ProxySelector = this.proxySelector,
        sslSocketFactory: SSLSocketFactory? = this.sslSocketFactory,
        hostnameVerifier: HostnameVerifier? = this.hostnameVerifier,
      ): Address {
        return Address(
          uriHost = uriHost,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  6. okhttp-coroutines/src/main/kotlin/okhttp3/coroutines/ExecuteAsync.kt

    @ExperimentalCoroutinesApi // resume with a resource cleanup.
    suspend fun Call.executeAsync(): Response =
      suspendCancellableCoroutine { continuation ->
        continuation.invokeOnCancellation {
          this.cancel()
        }
        this.enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              continuation.resumeWithException(e)
            }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        override fun start() {
          taskRunner.assertThreadHoldsLock()
          require(currentTask == this)
          activeThreads++
    
          tasksExecutor.execute {
            taskRunner.assertThreadDoesntHoldLock()
            require(currentTask == this)
            try {
              runnable.run()
              require(currentTask == this) { "unexpected current task: $currentTask" }
            } finally {
              taskRunner.lock.withLock {
    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)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          sink.flush()
        }
      }
    
      /** Applies `peerSettings` and then sends a settings ACK. */
      @Throws(IOException::class)
      fun applyAndAckSettings(peerSettings: Settings) {
        this.withLock {
          if (closed) throw IOException("closed")
          this.maxFrameSize = peerSettings.getMaxFrameSize(maxFrameSize)
          if (peerSettings.headerTableSize != -1) {
            hpackWriter.resizeHeaderTable(peerSettings.headerTableSize)
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

       * until one is ready. If there are no ready queues, or if other threads have everything under
       * control this will return null. If there is more than a single task ready to execute immediately
       * this will start another thread to handle that work.
       */
      fun awaitTaskToRun(): Task? {
        lock.assertHeld()
    
        while (true) {
          if (readyQueues.isEmpty()) {
    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)
  10. build.gradle.kts

      normalization {
        runtimeClasspath {
          metaInf {
            ignoreAttribute("Bnd-LastModified")
          }
        }
      }
    }
    
    /** Configure building for Java+Kotlin projects. */
    subprojects {
      val project = this@subprojects
      if (project.name == "okhttp-bom") return@subprojects
    
      if (project.name == "okhttp-android") return@subprojects
      if (project.name == "android-test") return@subprojects
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:32:42 GMT 2024
    - 8.9K bytes
    - Viewed (0)
Back to top