Skip to content

Commit

Permalink
Add HttpHeaders constant for Sec-CH-Prefers-Color-Scheme.
Browse files Browse the repository at this point in the history
RELNOTES=`net`: Added `HttpHeaders` constant for `Sec-CH-Prefers-Color-Scheme`.
PiperOrigin-RevId: 381113848
  • Loading branch information
java-team-github-bot authored and Google Java Core Libraries committed Jun 23, 2021
1 parent ac4c56b commit b23b277
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions android/guava/src/com/google/common/net/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,17 @@ private ReferrerPolicyValues() {}
*/
public static final String X_MOZ = "X-Moz";

/**
* The HTTP <a
* href="https://wicg.github.io/user-preference-media-features-headers/#sec-ch-prefers-color-scheme">{@code
* Sec-CH-Prefers-Color-Scheme}</a> header field name.
*
* <p>This header is experimental.
*
* @since NEXT
*/
public static final String SEC_CH_PREFERS_COLOR_SCHEME = "Sec-CH-Prefers-Color-Scheme";

/**
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua">{@code Sec-CH-UA}</a>
* header field name.
Expand Down
11 changes: 11 additions & 0 deletions guava/src/com/google/common/net/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,17 @@ private ReferrerPolicyValues() {}
*/
public static final String X_MOZ = "X-Moz";

/**
* The HTTP <a
* href="https://wicg.github.io/user-preference-media-features-headers/#sec-ch-prefers-color-scheme">{@code
* Sec-CH-Prefers-Color-Scheme}</a> header field name.
*
* <p>This header is experimental.
*
* @since NEXT
*/
public static final String SEC_CH_PREFERS_COLOR_SCHEME = "Sec-CH-Prefers-Color-Scheme";

/**
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua">{@code Sec-CH-UA}</a>
* header field name.
Expand Down

0 comments on commit b23b277

Please sign in to comment.