Skip to content

Commit 688b9c2

Browse files
java-team-github-botGoogle Java Core Libraries
authored andcommitted
Add HttpHeaders constants for No-Vary-Search.
RELNOTES=`net`: Added `HttpHeaders` constants for `No-Vary-Search`. PiperOrigin-RevId: 488976193
1 parent 7e87414 commit 688b9c2

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,13 @@ private ReferrerPolicyValues() {}
316316
* @since 31.0
317317
*/
318318
public static final String KEEP_ALIVE = "Keep-Alive";
319+
/**
320+
* The HTTP <a href="https://github.com/WICG/nav-speculation/blob/main/no-vary-search.md">{@code
321+
* No-Vary-Seearch}</a> header field name.
322+
*
323+
* @since NEXT
324+
*/
325+
public static final String NO_VARY_SEARCH = "No-Vary-Search";
319326
/**
320327
* The HTTP <a href="https://googlechrome.github.io/OriginTrials/#header">{@code Origin-Trial}</a>
321328
* header field name.

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,13 @@ private ReferrerPolicyValues() {}
316316
* @since 31.0
317317
*/
318318
public static final String KEEP_ALIVE = "Keep-Alive";
319+
/**
320+
* The HTTP <a href="https://github.com/WICG/nav-speculation/blob/main/no-vary-search.md">{@code
321+
* No-Vary-Seearch}</a> header field name.
322+
*
323+
* @since NEXT
324+
*/
325+
public static final String NO_VARY_SEARCH = "No-Vary-Search";
319326
/**
320327
* The HTTP <a href="https://googlechrome.github.io/OriginTrials/#header">{@code Origin-Trial}</a>
321328
* header field name.

0 commit comments

Comments
 (0)