Skip to content

Commit

Permalink
Update Sec-Ch-UA-Form-Factor to Sec-Ch-UA-Form-Factors to follow late…
Browse files Browse the repository at this point in the history
…st 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
  • Loading branch information
java-team-github-bot authored and Google Java Core Libraries committed Jun 19, 2024
1 parent 22151fa commit b310b7e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion android/guava/src/com/google/common/net/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -729,13 +729,24 @@ private ReferrerPolicyValues() {}
* @since 31.0
*/
public static final String SEC_CH_UA_BITNESS = "Sec-CH-UA-Bitness";

/**
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factor">{@code
* Sec-CH-UA-Form-Factor}</a> header field name.
*
* @deprecated Prefer {@link SEC_CH_UA_FORM_FACTORS}.
* @since 32.0.0
*/
public static final String SEC_CH_UA_FORM_FACTOR = "Sec-CH-UA-Form-Factor";
@Deprecated public static final String SEC_CH_UA_FORM_FACTOR = "Sec-CH-UA-Form-Factor";

/**
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factors">{@code
* Sec-CH-UA-Form-Factors}</a> header field name.
*
* @since NEXT
*/
public static final String SEC_CH_UA_FORM_FACTORS = "Sec-CH-UA-Form-Factors";

/**
* The HTTP <a
* href="https://wicg.github.io/responsive-image-client-hints/#sec-ch-viewport-width">{@code
Expand Down
13 changes: 12 additions & 1 deletion guava/src/com/google/common/net/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -729,13 +729,24 @@ private ReferrerPolicyValues() {}
* @since 31.0
*/
public static final String SEC_CH_UA_BITNESS = "Sec-CH-UA-Bitness";

/**
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factor">{@code
* Sec-CH-UA-Form-Factor}</a> header field name.
*
* @deprecated Prefer {@link SEC_CH_UA_FORM_FACTORS}.
* @since 32.0.0
*/
public static final String SEC_CH_UA_FORM_FACTOR = "Sec-CH-UA-Form-Factor";
@Deprecated public static final String SEC_CH_UA_FORM_FACTOR = "Sec-CH-UA-Form-Factor";

/**
* The HTTP <a href="https://wicg.github.io/ua-client-hints/#sec-ch-ua-form-factors">{@code
* Sec-CH-UA-Form-Factors}</a> header field name.
*
* @since NEXT
*/
public static final String SEC_CH_UA_FORM_FACTORS = "Sec-CH-UA-Form-Factors";

/**
* The HTTP <a
* href="https://wicg.github.io/responsive-image-client-hints/#sec-ch-viewport-width">{@code
Expand Down

0 comments on commit b310b7e

Please sign in to comment.