Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for connectStart (0.45 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/PrintEvents.java

        @Override public void dnsEnd(Call call, String domainName, List<InetAddress> inetAddressList) {
          printEvent("dnsEnd");
        }
    
        @Override public void connectStart(
            Call call, InetSocketAddress inetSocketAddress, Proxy proxy) {
          printEvent("connectStart");
        }
    
        @Override public void secureConnectStart(Call call) {
          printEvent("secureConnectStart");
        }
    
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 16 23:20:49 GMT 2020
    - 6.1K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/ConnectionEvent.kt

        override fun closes(event: ConnectionEvent): Boolean = event is ConnectStart && call == event.call && route == event.route
      }
    
      data class ConnectEnd(
        override val timestampNs: Long,
        override val connection: Connection,
        val route: Route,
        val call: Call,
      ) : ConnectionEvent() {
        override fun closes(event: ConnectionEvent): Boolean = event is ConnectStart && call == event.call && route == event.route
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  3. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

          .assertLogMatch(Regex("""proxySelectEnd: \[DIRECT]"""))
          .assertLogMatch(Regex("""dnsStart: ${url.host}"""))
          .assertLogMatch(Regex("""dnsEnd: \[.+]"""))
          .assertLogMatch(Regex("""connectStart: ${url.host}/.+ DIRECT"""))
          .assertLogMatch(Regex("""connectEnd: http/1.1"""))
          .assertLogMatch(
            Regex(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

        domainName: String,
        inetAddressList: List<InetAddress>,
      ) = logEvent(DnsEnd(System.nanoTime(), call, domainName, inetAddressList))
    
      override fun connectStart(
        call: Call,
        inetSocketAddress: InetSocketAddress,
        proxy: Proxy,
      ) = logEvent(ConnectStart(System.nanoTime(), call, inetSocketAddress, proxy))
    
      override fun secureConnectStart(call: Call) = logEvent(SecureConnectStart(System.nanoTime(), call))
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9K bytes
    - Viewed (1)
  5. okhttp/src/main/kotlin/okhttp3/ConnectionListener.kt

     */
    @ExperimentalOkHttpApi
    abstract class ConnectionListener {
      /**
       * Invoked as soon as a call causes a connection to be started.
       */
      open fun connectStart(
        route: Route,
        call: Call,
      ) {}
    
      /**
       * Invoked when a connection fails to be established.
       */
      open fun connectFailed(
        route: Route,
        call: Call,
        failure: IOException,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  6. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

        domainName: String,
        inetAddressList: List<InetAddress>,
      ) {
        logWithTime("dnsEnd: $inetAddressList")
      }
    
      override fun connectStart(
        call: Call,
        inetSocketAddress: InetSocketAddress,
        proxy: Proxy,
      ) {
        logWithTime("connectStart: $inetSocketAddress $proxy")
      }
    
      override fun secureConnectStart(call: Call) {
        logWithTime("secureConnectStart")
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

        @Override public void dnsEnd(Call call, String domainName, List<InetAddress> inetAddressList) {
          printEvent("dnsEnd");
        }
    
        @Override public void connectStart(
            Call call, InetSocketAddress inetSocketAddress, Proxy proxy) {
          printEvent("connectStart");
        }
    
        @Override public void secureConnectStart(Call call) {
          printEvent("secureConnectStart");
        }
    
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 16 23:20:49 GMT 2020
    - 5.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/EventListener.kt

     * Events are typically nested with this structure:
     *
     *  * call ([callStart], [callEnd], [callFailed])
     *    * proxy selection ([proxySelectStart], [proxySelectEnd])
     *    * dns ([dnsStart], [dnsEnd])
     *    * connect ([connectStart], [connectEnd], [connectFailed])
     *      * secure connect ([secureConnectStart], [secureConnectEnd])
     *    * connection held ([connectionAcquired], [connectionReleased])
     *      * request ([requestFailed])
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectionUser.kt

     */
    interface ConnectionUser {
      fun addPlanToCancel(connectPlan: ConnectPlan)
    
      fun removePlanToCancel(connectPlan: ConnectPlan)
    
      fun updateRouteDatabaseAfterSuccess(route: Route)
    
      fun connectStart(route: Route)
    
      fun secureConnectStart()
    
      fun secureConnectEnd(handshake: Handshake?)
    
      fun callConnectEnd(
        route: Route,
        protocol: Protocol?,
      )
    
      fun connectionConnectEnd(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/PoolConnectionUser.kt

      }
    
      override fun removePlanToCancel(connectPlan: ConnectPlan) {
      }
    
      override fun updateRouteDatabaseAfterSuccess(route: Route) {
      }
    
      override fun connectStart(route: Route) {
      }
    
      override fun secureConnectStart() {
      }
    
      override fun secureConnectEnd(handshake: Handshake?) {
      }
    
      override fun callConnectEnd(
        route: Route,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 2.6K bytes
    - Viewed (0)
Back to top