Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for loggingEventListener (0.32 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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Oct 06 13:40:20 UTC 2025
    - 5.8K 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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. module-tests/src/main/java/okhttp3/modules/OkHttpCaller.java

    import okhttp3.Request;
    import okhttp3.logging.HttpLoggingInterceptor;
    import okhttp3.logging.LoggingEventListener;
    
    /**
     * Just checking compilation works
     */
    public class OkHttpCaller {
      public static Call callOkHttp(HttpUrl url) {
        OkHttpClient client = new OkHttpClient
          .Builder()
          .eventListenerFactory(new LoggingEventListener.Factory(HttpLoggingInterceptor.Logger.DEFAULT))
          .build();
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Sep 21 06:22:22 UTC 2025
    - 1.2K 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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 15:15:46 UTC 2025
    - 4.6K 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 Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top