Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ConnectionEvent (0.07 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/ConnectionEvent.kt

        val route: Route,
        val call: Call,
      ) : ConnectionEvent()
    
      data class ConnectFailed(
        override val timestampNs: Long,
        val route: Route,
        val call: Call,
        val exception: IOException,
      ) : ConnectionEvent() {
        override fun closes(event: ConnectionEvent): Boolean = event is ConnectStart && call == event.call && route == event.route
      }
    
      data class ConnectEnd(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt

        assertThat(response.code).isEqualTo(200)
        response.body.close()
        listener.removeUpToEvent(ConnectionEvent.ConnectEnd::class.java)
        listener.removeUpToEvent(ConnectionEvent.ConnectionReleased::class.java)
        listener.removeUpToEvent(ConnectionEvent.ConnectionAcquired::class.java)
        listener.removeUpToEvent(ConnectionEvent.ConnectionReleased::class.java)
      }
    
      @Test
      @Throws(IOException::class)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt

        call: Call,
      ) {
        logEvent(ConnectionEvent.ConnectEnd(System.nanoTime(), connection, route, call))
      }
    
      override fun connectionClosed(connection: Connection) = logEvent(ConnectionEvent.ConnectionClosed(System.nanoTime(), connection))
    
      override fun connectionAcquired(
        connection: Connection,
        call: Call,
      ) {
        logEvent(ConnectionEvent.ConnectionAcquired(System.nanoTime(), connection, call))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top