Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for CallStart (0.23 sec)

  1. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

            .build(),
        )
        val response = client.newCall(request().build()).execute()
        assertThat(response.body).isNotNull()
        response.body.bytes()
        logRecorder
          .assertLogMatch(Regex("""callStart: Request\{method=GET, url=$url\}"""))
          .assertLogMatch(Regex("""proxySelectStart: $url"""))
          .assertLogMatch(Regex("""proxySelectEnd: \[DIRECT]"""))
          .assertLogMatch(Regex("""dnsStart: ${url.host}"""))
    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)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

      }
    
      data class CallStart(
        override val timestampNs: Long,
        override val call: Call,
      ) : CallEvent()
    
      data class CallEnd(
        override val timestampNs: Long,
        override val call: Call,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean = event is CallStart && call == event.call
      }
    
      data class CallFailed(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  3. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

     */
    class LoggingEventListener private constructor(
      private val logger: HttpLoggingInterceptor.Logger,
    ) : EventListener() {
      private var startNs: Long = 0
    
      override fun callStart(call: Call) {
        startNs = System.nanoTime()
    
        logWithTime("callStart: ${call.request()}")
      }
    
      override fun proxySelectStart(
        call: Call,
        url: HttpUrl,
      ) {
        logWithTime("proxySelectStart: $url")
      }
    
    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)
  4. okhttp-android/src/test/kotlin/okhttp3/android/AndroidLoggingTest.kt

        assertThat(
          logs.map {
            it.msg.replace(
              "\\[\\d+ ms] ".toRegex(),
              "",
            )
          },
        ).containsExactly(
          "callStart: Request{method=GET, url=http://google.com/robots.txt}",
          "proxySelectStart: http://google.com/",
          "proxySelectEnd: [DIRECT]",
          "dnsStart: google.com",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  5. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  6. okhttp-logging-interceptor/api/logging-interceptor.api

    	public fun cacheHit (Lokhttp3/Call;Lokhttp3/Response;)V
    	public fun cacheMiss (Lokhttp3/Call;)V
    	public fun callEnd (Lokhttp3/Call;)V
    	public fun callFailed (Lokhttp3/Call;Ljava/io/IOException;)V
    	public fun callStart (Lokhttp3/Call;)V
    	public fun canceled (Lokhttp3/Call;)V
    	public fun connectEnd (Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;Lokhttp3/Protocol;)V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 4.5K bytes
    - Viewed (1)
  7. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        client.newCall(request).execute().use { response ->
          assertEquals(200, response.code)
        }
    
        assertEquals(
          listOf(
            "CallStart", "ProxySelectStart", "ProxySelectEnd", "DnsStart", "DnsEnd",
            "ConnectStart", "SecureConnectStart", "SecureConnectEnd", "ConnectEnd",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  8. okhttp/src/test/java/okhttp3/DuplexTest.kt

    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

        call.execute().use { response ->
          assertThat(response.body.string()).isEqualTo("abc")
        }
    
        val expectedEvents = mutableListOf<String>()
        // Start out with standard events...
        expectedEvents += "CallStart"
        expectedEvents += "ProxySelectStart"
        expectedEvents += "ProxySelectEnd"
        expectedEvents += "DnsStart"
        expectedEvents += "DnsEnd"
        expectedEvents += "ConnectStart"
        if (https) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        var dns: Dns = Dns { TODO() }
    
        val system: Dns = Dns.SYSTEM
      }
    
      @Test
      fun eventListener() {
        val eventListener =
          object : EventListener() {
            override fun callStart(call: Call) = TODO()
    
            override fun dnsStart(
              call: Call,
              domainName: String,
            ) = TODO()
    
            override fun dnsEnd(
              call: Call,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 46.5K bytes
    - Viewed (4)
Back to top