Skip to content

Commit 44df85a

Browse files
java-team-github-botGoogle Java Core Libraries
authored and
Google Java Core Libraries
committedMar 1, 2022
Add HttpHeaders constants for Sec-CH-Viewport-Width and Sec-CH-Viewport-Height.
RELNOTES=`net`: Added `HttpHeaders` constants for `Sec-CH-Viewport-Width` and `Sec-CH-Viewport-Height`. PiperOrigin-RevId: 431695339
1 parent ac11adc commit 44df85a

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed
 

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

+16-1
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,22 @@ private ReferrerPolicyValues() {}
696696
* @since 31.0
697697
*/
698698
public static final String SEC_CH_UA_BITNESS = "Sec-CH-UA-Bitness";
699-
699+
/**
700+
* The HTTP <a
701+
* href="https://wicg.github.io/responsive-image-client-hints/#sec-ch-viewport-width">{@code
702+
* Sec-CH-Viewport-Width}</a> header field name.
703+
*
704+
* @since NEXT
705+
*/
706+
public static final String SEC_CH_VIEWPORT_WIDTH = "Sec-CH-Viewport-Width";
707+
/**
708+
* The HTTP <a
709+
* href="https://wicg.github.io/responsive-image-client-hints/#sec-ch-viewport-height">{@code
710+
* Sec-CH-Viewport-Height}</a> header field name.
711+
*
712+
* @since NEXT
713+
*/
714+
public static final String SEC_CH_VIEWPORT_HEIGHT = "Sec-CH-Viewport-Height";
700715
/**
701716
* The HTTP <a href="https://w3c.github.io/webappsec-fetch-metadata/">{@code Sec-Fetch-Dest}</a>
702717
* header field name.

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

+16-1
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,22 @@ private ReferrerPolicyValues() {}
696696
* @since 31.0
697697
*/
698698
public static final String SEC_CH_UA_BITNESS = "Sec-CH-UA-Bitness";
699-
699+
/**
700+
* The HTTP <a
701+
* href="https://wicg.github.io/responsive-image-client-hints/#sec-ch-viewport-width">{@code
702+
* Sec-CH-Viewport-Width}</a> header field name.
703+
*
704+
* @since NEXT
705+
*/
706+
public static final String SEC_CH_VIEWPORT_WIDTH = "Sec-CH-Viewport-Width";
707+
/**
708+
* The HTTP <a
709+
* href="https://wicg.github.io/responsive-image-client-hints/#sec-ch-viewport-height">{@code
710+
* Sec-CH-Viewport-Height}</a> header field name.
711+
*
712+
* @since NEXT
713+
*/
714+
public static final String SEC_CH_VIEWPORT_HEIGHT = "Sec-CH-Viewport-Height";
700715
/**
701716
* The HTTP <a href="https://w3c.github.io/webappsec-fetch-metadata/">{@code Sec-Fetch-Dest}</a>
702717
* header field name.

0 commit comments

Comments
 (0)