- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for redactedUrl (0.12 sec)
-
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
response.body.close() val redactedUrl = networkInterceptor.redactUrl(url) val redactedUrlPattern = redactedUrl.replace("?", """\?""") applicationLogs .assertLogEqual("--> GET $redactedUrl") .assertLogMatch(Regex("""<-- 200 OK $redactedUrlPattern \(\d+ms, \d+-byte body\)""")) .assertNoMoreLogs() networkLogs .assertLogEqual("--> GET $redactedUrl http/1.1")
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/main/kotlin/okhttp3/internal/connection/RealCall.kt
*/ private fun toLoggableString(): String { return ( (if (isCanceled()) "canceled " else "") + (if (forWebSocket) "web socket" else "call") + " to " + redactedUrl() ) } internal fun redactedUrl(): String = originalRequest.url.redact() inner class AsyncCall( private val responseCallback: Callback, ) : Runnable { @Volatile var callsPerHost = AtomicInteger(0)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 17.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HttpUrlTest.kt
assertThat(base.newBuilder("ht+tp://b")).isNull() assertThat(base.newBuilder("ht-tp://b")).isNull() assertThat(base.newBuilder("ht.tp://b")).isNull() } @Test fun redactedUrl() { val baseWithPasswordAndUsername = parse("http://username:password@host/a/b#fragment") val baseWithUsernameOnly = parse("http://username@host/a/b#fragment")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 67.9K bytes - Viewed (0)