Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for dnsStart (0.22 sec)

  1. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

      override fun proxySelectEnd(
        call: Call,
        url: HttpUrl,
        proxies: List<Proxy>,
      ) {
        logWithTime("proxySelectEnd: $proxies")
      }
    
      override fun dnsStart(
        call: Call,
        domainName: String,
      ) {
        logWithTime("dnsStart: $domainName")
      }
    
      override fun dnsEnd(
        call: Call,
        domainName: String,
        inetAddressList: List<InetAddress>,
      ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

          .assertLogMatch(Regex("""callStart: Request\{method=GET, url=$url\}"""))
          .assertLogMatch(Regex("""proxySelectStart: $url"""))
          .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(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/EventListenerTest.kt

              .build(),
          )
        val response = call.execute()
        assertThat(response.code).isEqualTo(200)
        response.body.close()
        val dnsStart: DnsStart = listener.removeUpToEvent<DnsStart>()
        assertThat(dnsStart.call).isSameAs(call)
        assertThat(dnsStart.domainName).isEqualTo(server.hostName)
        val dnsEnd: DnsEnd = listener.removeUpToEvent<DnsEnd>()
        assertThat(dnsEnd.call).isSameAs(call)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (2)
  4. docs/features/events.md

      @Override public void callStart(Call call) {
        printEvent("callStart");
      }
    
      @Override public void callEnd(Call call) {
        printEvent("callEnd");
      }
    
      @Override public void dnsStart(Call call, String domainName) {
        printEvent("dnsStart");
      }
    
      @Override public void dnsEnd(Call call, String domainName, List<InetAddress> inetAddressList) {
        printEvent("dnsEnd");
      }
    
      ...
    }
    ```
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

        proxies: List<Proxy>,
      ) {
        logWithTime("proxySelectEnd: $proxies")
    
        delegate.proxySelectEnd(call, url, proxies)
      }
    
      override fun dnsStart(
        call: Call,
        domainName: String,
      ) {
        logWithTime("dnsStart: $domainName")
    
        delegate.dnsStart(call, domainName)
      }
    
      override fun dnsEnd(
        call: Call,
        domainName: String,
        inetAddressList: List<InetAddress>,
      ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

        call: Call,
        url: HttpUrl,
        proxies: List<Proxy>,
      ) = logEvent(ProxySelectEnd(System.nanoTime(), call, url, proxies))
    
      override fun dnsStart(
        call: Call,
        domainName: String,
      ) = logEvent(DnsStart(System.nanoTime(), call, domainName))
    
      override fun dnsEnd(
        call: Call,
        domainName: String,
        inetAddressList: List<InetAddress>,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java

        }
    
        @Override public void proxySelectEnd(Call call, HttpUrl url, List<Proxy> proxies) {
          printEvent("proxySelectEnd");
        }
    
        @Override public void dnsStart(Call call, String domainName) {
          printEvent("dnsStart");
        }
    
        @Override public void dnsEnd(Call call, String domainName, List<InetAddress> inetAddressList) {
          printEvent("dnsEnd");
        }
    
        @Override public void connectStart(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 16 23:20:49 UTC 2020
    - 5.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/CallConnectionUser.kt

      }
    
      override fun proxySelectEnd(
        url: HttpUrl,
        proxies: List<Proxy>,
      ) {
        eventListener.proxySelectEnd(call, url, proxies)
      }
    
      override fun dnsStart(socketHost: String) {
        eventListener.dnsStart(call, socketHost)
      }
    
      override fun dnsEnd(
        socketHost: String,
        result: List<InetAddress>,
      ) {
        eventListener.dnsEnd(call, socketHost, result)
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Mar 06 17:33:38 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

        // JDK 14
        // CallStart, ProxySelectStart, ProxySelectEnd, DnsStart, DnsEnd, ConnectStart, SecureConnectStart,
        // SecureConnectEnd, ConnectEnd, ConnectionAcquired, RequestHeadersStart, RequestHeadersEnd,
        // ResponseFailed, ConnectionReleased, CallFailed
        // JDK 8
        // CallStart, ProxySelectStart, ProxySelectEnd, DnsStart, DnsEnd, ConnectStart, SecureConnectStart,
        // ConnectFailed, CallFailed
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

        val url: HttpUrl,
        val proxies: List<Proxy>?,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean = event is ProxySelectStart && call == event.call && url == event.url
      }
    
      data class DnsStart(
        override val timestampNs: Long,
        override val call: Call,
        val domainName: String,
      ) : CallEvent()
    
      data class DnsEnd(
        override val timestampNs: Long,
        override val call: Call,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top