Skip to content

Commit 49e6b9c

Browse files
java-team-github-botGoogle Java Core Libraries
authored and
Google Java Core Libraries
committedAug 31, 2022
Add Sec-CH-UA-Wow64 to HttpHeaders.
Spec: https://wicg.github.io/ua-client-hints/#sec-ch-ua-wow64 RELNOTES=`net`: Added `HttpHeaders` constant `Sec-CH-UA-Wow64`. PiperOrigin-RevId: 471292642
1 parent 32f7a37 commit 49e6b9c

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed
 

‎android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public void testConstantNameMatchesString() throws Exception {
4040
.put("CDN_LOOP", "CDN-Loop")
4141
.put("ETAG", "ETag")
4242
.put("SOURCE_MAP", "SourceMap")
43+
.put("SEC_CH_UA_WOW64", "Sec-CH-UA-WoW64")
4344
.put("SEC_WEBSOCKET_ACCEPT", "Sec-WebSocket-Accept")
4445
.put("SEC_WEBSOCKET_EXTENSIONS", "Sec-WebSocket-Extensions")
4546
.put("SEC_WEBSOCKET_KEY", "Sec-WebSocket-Key")

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

+7
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,13 @@ private ReferrerPolicyValues() {}
699699
* @since 30.0
700700
*/
701701
public static final String SEC_CH_UA_MOBILE = "Sec-CH-UA-Mobile";
702+
/**
703+
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-wow64">{@code
704+
* Sec-CH-UA-WoW64}</a> header field name.
705+
*
706+
* @since NEXT
707+
*/
708+
public static final String SEC_CH_UA_WOW64 = "Sec-CH-UA-WoW64";
702709
/**
703710
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-bitness">{@code
704711
* Sec-CH-UA-Bitness}</a> header field name.

‎guava-tests/test/com/google/common/net/HttpHeadersTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public void testConstantNameMatchesString() throws Exception {
4040
.put("CDN_LOOP", "CDN-Loop")
4141
.put("ETAG", "ETag")
4242
.put("SOURCE_MAP", "SourceMap")
43+
.put("SEC_CH_UA_WOW64", "Sec-CH-UA-WoW64")
4344
.put("SEC_WEBSOCKET_ACCEPT", "Sec-WebSocket-Accept")
4445
.put("SEC_WEBSOCKET_EXTENSIONS", "Sec-WebSocket-Extensions")
4546
.put("SEC_WEBSOCKET_KEY", "Sec-WebSocket-Key")

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

+7
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,13 @@ private ReferrerPolicyValues() {}
699699
* @since 30.0
700700
*/
701701
public static final String SEC_CH_UA_MOBILE = "Sec-CH-UA-Mobile";
702+
/**
703+
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-wow64">{@code
704+
* Sec-CH-UA-WoW64}</a> header field name.
705+
*
706+
* @since NEXT
707+
*/
708+
public static final String SEC_CH_UA_WOW64 = "Sec-CH-UA-WoW64";
702709
/**
703710
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-bitness">{@code
704711
* Sec-CH-UA-Bitness}</a> header field name.

0 commit comments

Comments
 (0)
Please sign in to comment.