diff options
author | Google Java Core Libraries <java-team-github-bot@google.com> | 2021-09-21 11:32:16 -0700 |
---|---|---|
committer | Google Java Core Libraries <java-core-libraries-team+copybara@google.com> | 2021-09-21 11:35:23 -0700 |
commit | da375be86a70a7d0871ca60c88473e5d718c5dc3 (patch) | |
tree | 9bc17178bd42c039e7408359aa93964686aff7ff | |
parent | 15c930912a78ff96d92ba49bd763286dbb956d59 (diff) | |
download | guava-da375be86a70a7d0871ca60c88473e5d718c5dc3.tar.gz |
Add `HttpHeaders` constants for `X-Device-IP`, `X-Device-Referer`, `X-Device-Accept-Language`, and `X-Device-Requested-With`.
RELNOTES=`net`: Added `HttpHeaders` constants for `X-Device-Ip`, `X-Device-Referer`, `X-Device-Accept-Language`, and `X-Device-Requested-With`.
PiperOrigin-RevId: 398045292
-rw-r--r-- | android/guava/src/com/google/common/net/HttpHeaders.java | 39 | ||||
-rw-r--r-- | guava/src/com/google/common/net/HttpHeaders.java | 39 |
2 files changed, 78 insertions, 0 deletions
diff --git a/android/guava/src/com/google/common/net/HttpHeaders.java b/android/guava/src/com/google/common/net/HttpHeaders.java index e424d5c79..64469b47a 100644 --- a/android/guava/src/com/google/common/net/HttpHeaders.java +++ b/android/guava/src/com/google/common/net/HttpHeaders.java @@ -388,6 +388,45 @@ public final class HttpHeaders { public static final String DNT = "DNT"; /** The HTTP {@code X-Content-Type-Options} header field name. */ public static final String X_CONTENT_TYPE_OPTIONS = "X-Content-Type-Options"; + /** + * The HTTP <a + * href="https://iabtechlab.com/wp-content/uploads/2019/06/VAST_4.2_final_june26.pdf">{@code + * X-Device-IP}</a> header field name. Header used for VAST requests to provide the IP address of + * the device on whose behalf the request is being made. + * + * @since NEXT + */ + public static final String X_DEVICE_IP = "X-Device-IP"; + /** + * The HTTP <a + * href="https://iabtechlab.com/wp-content/uploads/2019/06/VAST_4.2_final_june26.pdf">{@code + * X-Device-Referer}</a> header field name. Header used for VAST requests to provide the {@link + * #REFERER} header value that the on-behalf-of client would have used when making a request + * itself. + * + * @since NEXT + */ + public static final String X_DEVICE_REFERER = "X-Device-Referer"; + /** + * The HTTP <a + * href="https://iabtechlab.com/wp-content/uploads/2019/06/VAST_4.2_final_june26.pdf">{@code + * X-Device-Accept-Language}</a> header field name. Header used for VAST requests to provide the + * {@link #ACCEPT_LANGUAGE} header value that the on-behalf-of client would have used when making + * a request itself. + * + * @since NEXT + */ + public static final String X_DEVICE_ACCEPT_LANGUAGE = "X-Device-Accept-Language"; + /** + * The HTTP <a + * href="https://iabtechlab.com/wp-content/uploads/2019/06/VAST_4.2_final_june26.pdf">{@code + * X-Device-Requested-With}</a> header field name. Header used for VAST requests to provide the + * {@link #X_REQUESTED_WITH} header value that the on-behalf-of client would have used when making + * a request itself. + * + * @since NEXT + */ + public static final String X_DEVICE_REQUESTED_WITH = "X-Device-Requested-With"; /** The HTTP {@code X-Do-Not-Track} header field name. */ public static final String X_DO_NOT_TRACK = "X-Do-Not-Track"; /** The HTTP {@code X-Forwarded-For} header field name (superseded by {@code Forwarded}). */ diff --git a/guava/src/com/google/common/net/HttpHeaders.java b/guava/src/com/google/common/net/HttpHeaders.java index e424d5c79..64469b47a 100644 --- a/guava/src/com/google/common/net/HttpHeaders.java +++ b/guava/src/com/google/common/net/HttpHeaders.java @@ -388,6 +388,45 @@ public final class HttpHeaders { public static final String DNT = "DNT"; /** The HTTP {@code X-Content-Type-Options} header field name. */ public static final String X_CONTENT_TYPE_OPTIONS = "X-Content-Type-Options"; + /** + * The HTTP <a + * href="https://iabtechlab.com/wp-content/uploads/2019/06/VAST_4.2_final_june26.pdf">{@code + * X-Device-IP}</a> header field name. Header used for VAST requests to provide the IP address of + * the device on whose behalf the request is being made. + * + * @since NEXT + */ + public static final String X_DEVICE_IP = "X-Device-IP"; + /** + * The HTTP <a + * href="https://iabtechlab.com/wp-content/uploads/2019/06/VAST_4.2_final_june26.pdf">{@code + * X-Device-Referer}</a> header field name. Header used for VAST requests to provide the {@link + * #REFERER} header value that the on-behalf-of client would have used when making a request + * itself. + * + * @since NEXT + */ + public static final String X_DEVICE_REFERER = "X-Device-Referer"; + /** + * The HTTP <a + * href="https://iabtechlab.com/wp-content/uploads/2019/06/VAST_4.2_final_june26.pdf">{@code + * X-Device-Accept-Language}</a> header field name. Header used for VAST requests to provide the + * {@link #ACCEPT_LANGUAGE} header value that the on-behalf-of client would have used when making + * a request itself. + * + * @since NEXT + */ + public static final String X_DEVICE_ACCEPT_LANGUAGE = "X-Device-Accept-Language"; + /** + * The HTTP <a + * href="https://iabtechlab.com/wp-content/uploads/2019/06/VAST_4.2_final_june26.pdf">{@code + * X-Device-Requested-With}</a> header field name. Header used for VAST requests to provide the + * {@link #X_REQUESTED_WITH} header value that the on-behalf-of client would have used when making + * a request itself. + * + * @since NEXT + */ + public static final String X_DEVICE_REQUESTED_WITH = "X-Device-Requested-With"; /** The HTTP {@code X-Do-Not-Track} header field name. */ public static final String X_DO_NOT_TRACK = "X-Do-Not-Track"; /** The HTTP {@code X-Forwarded-For} header field name (superseded by {@code Forwarded}). */ |