Skip to content

Commit

Permalink
Adding [HTTP2-Settings] HTTP header.
Browse files Browse the repository at this point in the history
http://httpwg.org/specs/rfc7540.html#Http2SettingsHeader

RELNOTES=Defining "HTTP2-Settings" HTTP header according to http://httpwg.org/specs/rfc7540.html#Http2SettingsHeader

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=182408190
  • Loading branch information
dahollings authored and cpovirk committed Jan 18, 2018
1 parent 8be5ace commit 393066e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
Expand Up @@ -44,7 +44,8 @@ public void testConstantNameMatchesString() throws Exception {
"X_WEBKIT_CSP_REPORT_ONLY",
"X-WebKit-CSP-Report-Only");
ImmutableSet<String> uppercaseAcronyms =
ImmutableSet.of("ID", "DNT", "DNS", "IP", "MD5", "P3P", "TE", "UID", "URL", "WWW", "XSS");
ImmutableSet.of(
"ID", "DNT", "DNS", "HTTP2", "IP", "MD5", "P3P", "TE", "UID", "URL", "WWW", "XSS");
assertConstantNameMatchesString(HttpHeaders.class, specialCases, uppercaseAcronyms);
}

Expand Down
7 changes: 7 additions & 0 deletions android/guava/src/com/google/common/net/HttpHeaders.java
Expand Up @@ -92,6 +92,13 @@ private HttpHeaders() {}
public static final String FOLLOW_ONLY_WHEN_PRERENDER_SHOWN = "Follow-Only-When-Prerender-Shown";
/** The HTTP {@code Host} header field name. */
public static final String HOST = "Host";
/**
* The HTTP <a href="https://tools.ietf.org/html/rfc7540#section-3.2.1">{@code HTTP2-Settings}
* </a> header field name.
*
* @since NEXT
*/
public static final String HTTP2_SETTINGS = "HTTP2-Settings";
/** The HTTP {@code If-Match} header field name. */
public static final String IF_MATCH = "If-Match";
/** The HTTP {@code If-Modified-Since} header field name. */
Expand Down
3 changes: 2 additions & 1 deletion guava-tests/test/com/google/common/net/HttpHeadersTest.java
Expand Up @@ -44,7 +44,8 @@ public void testConstantNameMatchesString() throws Exception {
"X_WEBKIT_CSP_REPORT_ONLY",
"X-WebKit-CSP-Report-Only");
ImmutableSet<String> uppercaseAcronyms =
ImmutableSet.of("ID", "DNT", "DNS", "IP", "MD5", "P3P", "TE", "UID", "URL", "WWW", "XSS");
ImmutableSet.of(
"ID", "DNT", "DNS", "HTTP2", "IP", "MD5", "P3P", "TE", "UID", "URL", "WWW", "XSS");
assertConstantNameMatchesString(HttpHeaders.class, specialCases, uppercaseAcronyms);
}

Expand Down
7 changes: 7 additions & 0 deletions guava/src/com/google/common/net/HttpHeaders.java
Expand Up @@ -92,6 +92,13 @@ private HttpHeaders() {}
public static final String FOLLOW_ONLY_WHEN_PRERENDER_SHOWN = "Follow-Only-When-Prerender-Shown";
/** The HTTP {@code Host} header field name. */
public static final String HOST = "Host";
/**
* The HTTP <a href="https://tools.ietf.org/html/rfc7540#section-3.2.1">{@code HTTP2-Settings}
* </a> header field name.
*
* @since NEXT
*/
public static final String HTTP2_SETTINGS = "HTTP2-Settings";
/** The HTTP {@code If-Match} header field name. */
public static final String IF_MATCH = "If-Match";
/** The HTTP {@code If-Modified-Since} header field name. */
Expand Down

0 comments on commit 393066e

Please sign in to comment.