Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for loggingEventListener (0.1 sec)

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

     *
     * The format of the logs created by this class should not be considered stable and may change
     * slightly between releases. If you need a stable logging format, use your own event listener.
     */
    class LoggingEventListener private constructor(
      private val logger: HttpLoggingInterceptor.Logger,
    ) : EventListener() {
      private var startNs: Long = 0
    
      override fun callStart(call: Call) {
        startNs = System.nanoTime()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. android-test/src/test/kotlin/okhttp/android/test/AndroidLoggingTest.kt

    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.internal.platform.AndroidPlatform
    import okhttp3.logging.HttpLoggingInterceptor
    import okhttp3.logging.LoggingEventListener
    import org.junit.Test
    import org.junit.runner.RunWith
    import org.robolectric.RobolectricTestRunner
    import org.robolectric.shadows.ShadowLog
    
    @RunWith(RobolectricTestRunner::class)
    class AndroidLoggingTest {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

      }
    
      @Test
      fun loggingEventListener() {
        var loggingEventListener: EventListener = LoggingEventListener.Factory().create(FailingCall())
      }
    
      @Test
      fun loggingEventListenerFactory() {
        var factory: LoggingEventListener.Factory = LoggingEventListener.Factory()
        factory = LoggingEventListener.Factory(HttpLoggingInterceptor.Logger.DEFAULT)
        factory =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  4. okhttp-logging-interceptor/api/logging-interceptor.api

    }
    
    public final class okhttp3/logging/HttpLoggingInterceptor$Logger$Companion {
    }
    
    public final class okhttp3/logging/LoggingEventListener : okhttp3/EventListener {
    	public static final field Companion Lokhttp3/logging/LoggingEventListener$Companion;
    	public synthetic fun <init> (Lokhttp3/logging/HttpLoggingInterceptor$Logger;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

    import okhttp3.curl.internal.commonRun
    import okhttp3.curl.logging.LoggingUtil
    import okhttp3.internal.platform.Platform
    import okhttp3.logging.HttpLoggingInterceptor
    import okhttp3.logging.LoggingEventListener
    
    class Main : CliktCommand(name = NAME) {
      override val printHelpOnEmptyArgs = true
    
      override fun help(context: Context): String = "A curl for the next-generation web."
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6K bytes
    - Viewed (0)
  6. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

      private val logRecorder =
        HttpLoggingInterceptorTest.LogRecorder(
          prefix = Regex("""\[\d+ ms] """),
        )
      private val loggingEventListenerFactory = LoggingEventListener.Factory(logRecorder)
      private lateinit var client: OkHttpClient
      private lateinit var url: HttpUrl
    
      @BeforeEach
      fun setUp() {
        client =
          clientTestRule
            .newClientBuilder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

    import okhttp3.internal.platform.Android10Platform
    import okhttp3.internal.platform.AndroidPlatform
    import okhttp3.internal.platform.Platform
    import okhttp3.internal.platform.PlatformRegistry
    import okhttp3.logging.LoggingEventListener
    import okhttp3.testing.PlatformRule
    import okhttp3.tls.HandshakeCertificates
    import okhttp3.tls.internal.TlsUtil.localhost
    import okhttp3.zstd.Zstd
    import okio.ByteString.Companion.toByteString
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
  8. CHANGELOG.md

    The okhttp-android artifact first introduced in `5.0.0-alpha.7` is no longer available:
    
     *  The `AndroidAsyncDns` class moved to the `okhttp` artifact.
     *  The `AndroidLogging` class is no longer necessary. `LoggingEventListener` and
        `HttpLoggingInterceptor` write to logcat by default.
    
    The rest of this release is our highest-quality release yet. Though we continue to use the word
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 31.6K bytes
    - Viewed (1)
  9. okhttp/src/androidMain/baseline-prof.txt

    Lokhttp3/logging/HttpLoggingInterceptor$Logger$Companion$DefaultLogger;
    Lokhttp3/logging/HttpLoggingInterceptor$Logger;
    Lokhttp3/logging/HttpLoggingInterceptor;
    Lokhttp3/logging/LoggingEventListener$Factory;
    Lokhttp3/logging/LoggingEventListener;
    Lokio/AsyncTimeout$Companion;
    Lokio/AsyncTimeout$Watchdog;
    Lokio/AsyncTimeout$sink$1;
    Lokio/AsyncTimeout$source$1;
    Lokio/AsyncTimeout;
    Lokio/BlackholeSink;
    Lokio/Buffer;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Dec 30 23:28:56 UTC 2024
    - 127.9K bytes
    - Viewed (0)
Back to top