- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for isSensitiveHeader (6.51 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HeadersCommon.kt
internal fun Headers.commonToString(): String = buildString { for (i in 0 until size) { val name = name(i) val value = value(i) append(name) append(": ") append(if (isSensitiveHeader(name)) "██" else value) append("\n") } } internal fun commonHeadersGet( namesAndValues: Array<String>, name: String, ): String? { for (i in namesAndValues.size - 2 downTo 0 step 2) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 5.8K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt
import kotlin.reflect.cast import okhttp3.Headers.Companion.headersOf import okhttp3.HttpUrl.Companion.toHttpUrl import okhttp3.internal.http.GzipRequestBody import okhttp3.internal.http.HttpMethod import okhttp3.internal.isSensitiveHeader /** * An HTTP request. Instances of this class are immutable if their [body] is null or itself * immutable. */ class Request internal constructor( builder: Builder, ) { @get:JvmName("url")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 13.1K bytes - Viewed (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt
if (c <= '\u001f' || c >= '\u007f') { return i } } return -1 } /** Returns true if we should void putting this this header in an exception or toString(). */ internal fun isSensitiveHeader(name: String): Boolean = name.equals("Authorization", ignoreCase = true) || name.equals("Cookie", ignoreCase = true) || name.equals("Proxy-Authorization", ignoreCase = true) ||
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 10.1K bytes - Viewed (0)