Skip to content

Commit 8319d20

Browse files
TiagoGrossocgdecker
authored andcommitted
Add X-Request-ID to HttpHeaders.
Fixes #5306. RELNOTES=Add `X-Request-ID` to `HttpHeaders`. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=341479875
1 parent c5e2d8d commit 8319d20

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,12 @@ private ReferrerPolicyValues() {}
418418
* @since 15.0
419419
*/
420420
@Beta public static final String PUBLIC_KEY_PINS_REPORT_ONLY = "Public-Key-Pins-Report-Only";
421+
/**
422+
* The HTTP {@code X-Request-ID} header field name.
423+
*
424+
* @since NEXT
425+
*/
426+
public static final String X_REQUEST_ID = "X-Request-ID";
421427
/** The HTTP {@code X-Requested-With} header field name. */
422428
public static final String X_REQUESTED_WITH = "X-Requested-With";
423429
/** The HTTP {@code X-User-IP} header field name. */

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,12 @@ private ReferrerPolicyValues() {}
418418
* @since 15.0
419419
*/
420420
@Beta public static final String PUBLIC_KEY_PINS_REPORT_ONLY = "Public-Key-Pins-Report-Only";
421+
/**
422+
* The HTTP {@code X-Request-ID} header field name.
423+
*
424+
* @since NEXT
425+
*/
426+
public static final String X_REQUEST_ID = "X-Request-ID";
421427
/** The HTTP {@code X-Requested-With} header field name. */
422428
public static final String X_REQUESTED_WITH = "X-Requested-With";
423429
/** The HTTP {@code X-User-IP} header field name. */

0 commit comments

Comments
 (0)