Skip to content

Commit b310b7e

Browse files
java-team-github-botGoogle Java Core Libraries
authored and
Google Java Core Libraries
committed
Update Sec-Ch-UA-Form-Factor to Sec-Ch-UA-Form-Factors to follow latest spec.
RELNOTES=`net`: Deprecated `HttpHeaders` constant for `Sec-Ch-UA-Form-Factor` in favor of `Sec-Ch-UA-Form-Factors` to follow the latest spec. PiperOrigin-RevId: 644563871
1 parent 22151fa commit b310b7e

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

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

+12-1
Original file line numberDiff line numberDiff line change
@@ -729,13 +729,24 @@ private ReferrerPolicyValues() {}
729729
* @since 31.0
730730
*/
731731
public static final String SEC_CH_UA_BITNESS = "Sec-CH-UA-Bitness";
732+
732733
/**
733734
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factor">{@code
734735
* Sec-CH-UA-Form-Factor}</a> header field name.
735736
*
737+
* @deprecated Prefer {@link SEC_CH_UA_FORM_FACTORS}.
736738
* @since 32.0.0
737739
*/
738-
public static final String SEC_CH_UA_FORM_FACTOR = "Sec-CH-UA-Form-Factor";
740+
@Deprecated public static final String SEC_CH_UA_FORM_FACTOR = "Sec-CH-UA-Form-Factor";
741+
742+
/**
743+
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factors">{@code
744+
* Sec-CH-UA-Form-Factors}</a> header field name.
745+
*
746+
* @since NEXT
747+
*/
748+
public static final String SEC_CH_UA_FORM_FACTORS = "Sec-CH-UA-Form-Factors";
749+
739750
/**
740751
* The HTTP <a
741752
* href="https://wicg.github.io/responsive-image-client-hints/#sec-ch-viewport-width">{@code

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

+12-1
Original file line numberDiff line numberDiff line change
@@ -729,13 +729,24 @@ private ReferrerPolicyValues() {}
729729
* @since 31.0
730730
*/
731731
public static final String SEC_CH_UA_BITNESS = "Sec-CH-UA-Bitness";
732+
732733
/**
733734
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factor">{@code
734735
* Sec-CH-UA-Form-Factor}</a> header field name.
735736
*
737+
* @deprecated Prefer {@link SEC_CH_UA_FORM_FACTORS}.
736738
* @since 32.0.0
737739
*/
738-
public static final String SEC_CH_UA_FORM_FACTOR = "Sec-CH-UA-Form-Factor";
740+
@Deprecated public static final String SEC_CH_UA_FORM_FACTOR = "Sec-CH-UA-Form-Factor";
741+
742+
/**
743+
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factors">{@code
744+
* Sec-CH-UA-Form-Factors}</a> header field name.
745+
*
746+
* @since NEXT
747+
*/
748+
public static final String SEC_CH_UA_FORM_FACTORS = "Sec-CH-UA-Form-Factors";
749+
739750
/**
740751
* The HTTP <a
741752
* href="https://wicg.github.io/responsive-image-client-hints/#sec-ch-viewport-width">{@code

0 commit comments

Comments
 (0)