Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 33 for ConnectionReleased (0.14 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt

            }
            addAll(listOf("ConnectionAcquired", "ConnectionReleased", "CallEnd"))
          }
    
        assertThat(events2).isEqualTo(expectedEvents2)
      }
    
      private fun isConnectionEvent(it: CallEvent?) =
        it is CallStart ||
          it is CallEnd ||
          it is ConnectStart ||
          it is ConnectEnd ||
          it is ConnectionAcquired ||
          it is ConnectionReleased ||
          it is Canceled ||
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  2. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

        }
    
        @Override public void connectionAcquired(Call call, Connection connection) {
          printEvent("connectionAcquired");
        }
    
        @Override public void connectionReleased(Call call, Connection connection) {
          printEvent("connectionReleased");
        }
    
        @Override public void requestHeadersStart(Call call) {
          printEvent("requestHeadersStart");
        }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 16 23:20:49 GMT 2020
    - 5.3K bytes
    - Click Count (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

        call: Call,
        connection: Connection,
      ) {
        logWithTime("connectionAcquired: $connection")
      }
    
      override fun connectionReleased(
        call: Call,
        connection: Connection,
      ) {
        logWithTime("connectionReleased")
      }
    
      override fun requestHeadersStart(call: Call) {
        logWithTime("requestHeadersStart")
      }
    
      override fun requestHeadersEnd(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Oct 07 21:03:04 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  4. samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java

        }
    
        @Override public void connectionAcquired(Call call, Connection connection) {
          printEvent("connectionAcquired");
        }
    
        @Override public void connectionReleased(Call call, Connection connection) {
          printEvent("connectionReleased");
        }
    
        @Override public void requestHeadersStart(Call call) {
          printEvent("requestHeadersStart");
        }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 16 23:20:49 GMT 2020
    - 6.1K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectionListener.kt

       */
      open fun connectionAcquired(
        connection: Connection,
        call: Call,
      ) {}
    
      /**
       * Invoked when a call no longer uses a connection.
       */
      open fun connectionReleased(
        connection: Connection,
        call: Call,
      ) {}
    
      /**
       * Invoked when a connection is marked for no new exchanges.
       */
      open fun noNewExchanges(connection: Connection) {}
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri May 30 21:28:20 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/ConnectionEvent.kt

      ) : ConnectionEvent()
    
      data class ConnectionAcquired(
        override val timestampNs: Long,
        override val connection: Connection,
        val call: Call,
      ) : ConnectionEvent()
    
      data class ConnectionReleased(
        override val timestampNs: Long,
        override val connection: Connection,
        val call: Call,
      ) : ConnectionEvent() {
        override fun closes(event: ConnectionEvent): Boolean =
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri May 30 21:28:20 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

          for (delegate in eventListeners) {
            delegate.connectionAcquired(call, connection)
          }
        }
    
        override fun connectionReleased(
          call: Call,
          connection: Connection,
        ) {
          for (delegate in eventListeners) {
            delegate.connectionReleased(call, connection)
          }
        }
    
        override fun requestHeadersStart(call: Call) {
          for (delegate in eventListeners) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Oct 07 21:03:04 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt

    import okhttp3.CallEvent.CallEnd
    import okhttp3.CallEvent.CallStart
    import okhttp3.CallEvent.ConnectEnd
    import okhttp3.CallEvent.ConnectStart
    import okhttp3.CallEvent.ConnectionAcquired
    import okhttp3.CallEvent.ConnectionReleased
    import okhttp3.CallEvent.DnsEnd
    import okhttp3.CallEvent.DnsStart
    import okhttp3.CallEvent.FollowUpDecision
    import okhttp3.CallEvent.ProxySelectEnd
    import okhttp3.CallEvent.ProxySelectStart
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 11:54:15 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

      override fun connectionAcquired(
        connection: Connection,
        call: Call,
      ) {
        logEvent(ConnectionEvent.ConnectionAcquired(System.nanoTime(), connection, call))
      }
    
      override fun connectionReleased(
        connection: Connection,
        call: Call,
      ) {
        if (eventSequence.find { it is ConnectionEvent.ConnectStart && it.connection == connection } != null && connection is RealConnection) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  10. docs/features/caching.md

    response only if the response code is HTTP/1.1 304 Not Modified.
    
     - CallStart
     - **CacheConditionalHit**
     - ConnectionAcquired
     - ... Standard Events...
     - ResponseBodyEnd _(0 bytes)_
     - **CacheHit**
     - ConnectionReleased
     - CallEnd
    
    ## Cache directory
    
    The cache directory must be exclusively owned by a single instance.
    
    Deleting the cache when it is no longer needed can be done.  However this may delete the purpose of the cache
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 3.1K bytes
    - Click Count (1)
Back to Top