Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isSensitiveHeader (0.05 sec)

  1. 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)
  2. 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)
Back to top