- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for redactHeader (0.07 sec)
-
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
private class DefaultLogger : Logger { override fun log(message: String) { Platform.get().log(message) } } } } fun redactHeader(name: String) { val newHeadersToRedact = TreeSet(String.CASE_INSENSITIVE_ORDER) newHeadersToRedact += headersToRedact newHeadersToRedact += name headersToRedact = newHeadersToRedact }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 09:14:38 UTC 2024 - 11.2K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
HttpLoggingInterceptor(networkLogs).setLevel( Level.HEADERS, ) networkInterceptor.redactHeader("sEnSiTiVe") val applicationInterceptor = HttpLoggingInterceptor(applicationLogs).setLevel( Level.HEADERS, ) applicationInterceptor.redactHeader("sEnSiTiVe") client = OkHttpClient.Builder() .addNetworkInterceptor(networkInterceptor)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 09:14:38 UTC 2024 - 37.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
} @Test fun httpLoggingInterceptor() { var interceptor: HttpLoggingInterceptor = HttpLoggingInterceptor() interceptor = HttpLoggingInterceptor(HttpLoggingInterceptor.Logger.DEFAULT) interceptor.redactHeader("") interceptor.level = HttpLoggingInterceptor.Level.BASIC var level: HttpLoggingInterceptor.Level = interceptor.level interceptor.intercept(newInterceptorChain()) } @Test
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0)