diff --git a/android/guava/src/com/google/common/net/HttpHeaders.java b/android/guava/src/com/google/common/net/HttpHeaders.java index ef8f3631d1e7..581dcbb14f0d 100755 --- a/android/guava/src/com/google/common/net/HttpHeaders.java +++ b/android/guava/src/com/google/common/net/HttpHeaders.java @@ -349,6 +349,17 @@ private ReferrerPolicyValues() {} public static final String X_REQUESTED_WITH = "X-Requested-With"; /** The HTTP {@code X-User-IP} header field name. */ public static final String X_USER_IP = "X-User-IP"; + /** + * The HTTP {@code X-Download-Options} header field name. + * + *

When the new X-Download-Options header is present with the value {@code noopen}, the user is + * prevented from opening a file download directly; instead, they must first save the file + * locally. + * + * @since NEXT + */ + @Beta + public static final String X_DOWNLOAD_OPTIONS = "X-Download-Options"; /** The HTTP {@code X-XSS-Protection} header field name. */ public static final String X_XSS_PROTECTION = "X-XSS-Protection"; /** diff --git a/guava/src/com/google/common/net/HttpHeaders.java b/guava/src/com/google/common/net/HttpHeaders.java index ef8f3631d1e7..581dcbb14f0d 100644 --- a/guava/src/com/google/common/net/HttpHeaders.java +++ b/guava/src/com/google/common/net/HttpHeaders.java @@ -349,6 +349,17 @@ private ReferrerPolicyValues() {} public static final String X_REQUESTED_WITH = "X-Requested-With"; /** The HTTP {@code X-User-IP} header field name. */ public static final String X_USER_IP = "X-User-IP"; + /** + * The HTTP {@code X-Download-Options} header field name. + * + *

When the new X-Download-Options header is present with the value {@code noopen}, the user is + * prevented from opening a file download directly; instead, they must first save the file + * locally. + * + * @since NEXT + */ + @Beta + public static final String X_DOWNLOAD_OPTIONS = "X-Download-Options"; /** The HTTP {@code X-XSS-Protection} header field name. */ public static final String X_XSS_PROTECTION = "X-XSS-Protection"; /**