Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for logs (0.21 sec)

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

              if (!buffer.isProbablyUtf8()) {
                logger.log("")
                logger.log("<-- END HTTP (${totalMs}ms, binary ${buffer.size}-byte body omitted)")
                return response
              }
    
              if (contentLength != 0L) {
                logger.log("")
                logger.log(buffer.clone().readString(charset))
              }
    
              logger.log(
                buildString {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  2. docs/changelogs/changelog_4x.md

    
    ## Version 4.9.1
    
    _2021-01-30_
    
     *  Fix: Work around a crash in Android 10 and 11 that may be triggered when two threads
        concurrently close an SSL socket. This would have appeared in crash logs as
        `NullPointerException: bio == null`.
    
    
    ## Version 4.9.0
    
    _2020-09-11_
    
    **With this release, `okhttp-tls` no longer depends on Bouncy Castle and doesn't install the
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

    import okhttp3.recipes.kt.WireSharkListenerFactory.WireSharkKeyLoggerListener.Launch.Gui
    import okio.ByteString.Companion.toByteString
    
    /**
     * Logs SSL keys to a log file, allowing Wireshark to decode traffic and be examined with http2
     * filter. The approach is to hook into JSSE log events for the messages between client and server
     * during handshake, and then take the agreed masterSecret from private fields of the session.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  4. android-test/README.md

    ```
    
    2. Run an Emulator using Android Studio or from command line.
    
    ```
    $ emulator -no-window -no-snapshot-load @pixel5
    ```
    
    2. Turn on logs with logcat
    
    ```
    $ adb logcat '*:E' OkHttp:D Http2:D TestRunner:D TaskRunner:D OkHttpTest:D GnssHAL_GnssInterface:F DeviceStateChecker:F memtrack:F
    ...
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Feb 14 08:26:50 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/TestLogHandler.kt

            }
          }
        }
      }
    
      fun takeAll(): List<String> {
        val list = mutableListOf<String>()
        logs.drainTo(list)
        return list
      }
    
      fun take(): String {
        return logs.poll(10, TimeUnit.SECONDS)
          ?: throw AssertionError("Timed out waiting for log message.")
      }
    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)
  6. okhttp-logging-interceptor/README.md

    ===================
    
    An [OkHttp interceptor][interceptors] which logs HTTP request and response data.
    
    ```java
    HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
    logging.setLevel(Level.BASIC);
    OkHttpClient client = new OkHttpClient.Builder()
      .addInterceptor(logging)
      .build();
    ```
    
    You can change the log level at any time by calling `setLevel()`.
    
    To log to a custom location, pass a `Logger` instance to the constructor.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  7. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

              .isLessThan(logs.size)
            assertThat(logs[index++])
              .matches(Regex(prefix.pattern + regex.pattern, RegexOption.DOT_MATCHES_ALL))
          }
    
        fun assertNoMoreLogs() {
          assertThat(logs.size, "More messages remain: ${logs.subList(index, logs.size)}")
            .isEqualTo(index)
        }
    
        override fun log(message: String) {
          logs.add(message)
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  8. okhttp-android/src/test/kotlin/okhttp3/android/AndroidLoggingTest.kt

          // expected
        }
    
        val logs = ShadowLog.getLogsForTag("testHttpLoggingInterceptor")
        assertThat(logs.map { it.type }).containsOnly(Log.INFO)
        assertThat(logs.map { it.msg }).containsExactly(
          "--> GET http://google.com/robots.txt",
          "<-- HTTP FAILED: java.net.UnknownHostException: shortcircuit",
        )
        // We should consider if these logs should retain Exceptions
    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)
  9. regression-test/README.md

    ```
    
    2. Run an Emulator using Android Studio or from command line.
    
    ```
    $ emulator -no-window -no-snapshot-load @pixel5
    ```
    
    2. Turn on logs with logcat
    
    ```
    $ adb logcat '*:E' OkHttp:D Http2:D TestRunner:D TaskRunner:D OkHttpTest:D GnssHAL_GnssInterface:F DeviceStateChecker:F memtrack:F
    ...
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Nov 13 07:09:56 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  10. okhttp-logging-interceptor/Module.md

    # Module okhttp-logging-interceptor
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 11:27:49 GMT 2019
    - 102 bytes
    - Viewed (0)
Back to top