Skip to content

Commit b23b277

Browse files
java-team-github-botGoogle Java Core Libraries
authored and
Google Java Core Libraries
committed
Add HttpHeaders constant for Sec-CH-Prefers-Color-Scheme.
RELNOTES=`net`: Added `HttpHeaders` constant for `Sec-CH-Prefers-Color-Scheme`. PiperOrigin-RevId: 381113848
1 parent ac4c56b commit b23b277

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

android/guava/src/com/google/common/net/HttpHeaders.java

+11
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,17 @@ private ReferrerPolicyValues() {}
493493
*/
494494
public static final String X_MOZ = "X-Moz";
495495

496+
/**
497+
* The HTTP <a
498+
* href="https://wicg.github.io/user-preference-media-features-headers/#sec-ch-prefers-color-scheme">{@code
499+
* Sec-CH-Prefers-Color-Scheme}</a> header field name.
500+
*
501+
* <p>This header is experimental.
502+
*
503+
* @since NEXT
504+
*/
505+
public static final String SEC_CH_PREFERS_COLOR_SCHEME = "Sec-CH-Prefers-Color-Scheme";
506+
496507
/**
497508
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua">{@code Sec-CH-UA}</a>
498509
* header field name.

guava/src/com/google/common/net/HttpHeaders.java

+11
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,17 @@ private ReferrerPolicyValues() {}
493493
*/
494494
public static final String X_MOZ = "X-Moz";
495495

496+
/**
497+
* The HTTP <a
498+
* href="https://wicg.github.io/user-preference-media-features-headers/#sec-ch-prefers-color-scheme">{@code
499+
* Sec-CH-Prefers-Color-Scheme}</a> header field name.
500+
*
501+
* <p>This header is experimental.
502+
*
503+
* @since NEXT
504+
*/
505+
public static final String SEC_CH_PREFERS_COLOR_SCHEME = "Sec-CH-Prefers-Color-Scheme";
506+
496507
/**
497508
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua">{@code Sec-CH-UA}</a>
498509
* header field name.

0 commit comments

Comments
 (0)