Skip to content

Commit

Permalink
Add Keep-Alive to HttpHeaders.
Browse files Browse the repository at this point in the history
RELNOTES=`net`: Added `HttpHeaders` constant for Keep-Alive.
PiperOrigin-RevId: 378743056
  • Loading branch information
java-team-github-bot authored and Google Java Core Libraries committed Jun 10, 2021
1 parent a95717c commit 9c88f9a
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 @@ -304,6 +304,12 @@ private ReferrerPolicyValues() {}
public static final String LINK = "Link";
/** The HTTP {@code Location} header field name. */
public static final String LOCATION = "Location";
/**
* The HTTP {@code Keep-Alive} header field name.
*
* @since NEXT
*/
public static final String KEEP_ALIVE = "Keep-Alive";
/**
* The HTTP <a href="https://googlechrome.github.io/OriginTrials/#header">{@code Origin-Trial}</a>
* 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 @@ -304,6 +304,12 @@ private ReferrerPolicyValues() {}
public static final String LINK = "Link";
/** The HTTP {@code Location} header field name. */
public static final String LOCATION = "Location";
/**
* The HTTP {@code Keep-Alive} header field name.
*
* @since NEXT
*/
public static final String KEEP_ALIVE = "Keep-Alive";
/**
* The HTTP <a href="https://googlechrome.github.io/OriginTrials/#header">{@code Origin-Trial}</a>
* header field name.
Expand Down

0 comments on commit 9c88f9a

Please sign in to comment.