Skip to content

Commit

Permalink
Add X-Request-ID to HttpHeaders.
Browse files Browse the repository at this point in the history
Fixes #5306.

RELNOTES=Add `X-Request-ID` to `HttpHeaders`.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=341479875
  • Loading branch information
TiagoGrosso authored and cgdecker committed Nov 10, 2020
1 parent c5e2d8d commit 8319d20
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions android/guava/src/com/google/common/net/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,12 @@ private ReferrerPolicyValues() {}
* @since 15.0
*/
@Beta public static final String PUBLIC_KEY_PINS_REPORT_ONLY = "Public-Key-Pins-Report-Only";
/**
* The HTTP {@code X-Request-ID} header field name.
*
* @since NEXT
*/
public static final String X_REQUEST_ID = "X-Request-ID";
/** The HTTP {@code X-Requested-With} header field name. */
public static final String X_REQUESTED_WITH = "X-Requested-With";
/** The HTTP {@code X-User-IP} header field name. */
Expand Down
6 changes: 6 additions & 0 deletions guava/src/com/google/common/net/HttpHeaders.java
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,12 @@ private ReferrerPolicyValues() {}
* @since 15.0
*/
@Beta public static final String PUBLIC_KEY_PINS_REPORT_ONLY = "Public-Key-Pins-Report-Only";
/**
* The HTTP {@code X-Request-ID} header field name.
*
* @since NEXT
*/
public static final String X_REQUEST_ID = "X-Request-ID";
/** The HTTP {@code X-Requested-With} header field name. */
public static final String X_REQUESTED_WITH = "X-Requested-With";
/** The HTTP {@code X-User-IP} header field name. */
Expand Down

0 comments on commit 8319d20

Please sign in to comment.