Skip to content

Commit 9c88f9a

Browse files
java-team-github-botGoogle Java Core Libraries
authored andcommitted
Add Keep-Alive to HttpHeaders.
RELNOTES=`net`: Added `HttpHeaders` constant for Keep-Alive. PiperOrigin-RevId: 378743056
1 parent a95717c commit 9c88f9a

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
@@ -304,6 +304,12 @@ private ReferrerPolicyValues() {}
304304
public static final String LINK = "Link";
305305
/** The HTTP {@code Location} header field name. */
306306
public static final String LOCATION = "Location";
307+
/**
308+
* The HTTP {@code Keep-Alive} header field name.
309+
*
310+
* @since NEXT
311+
*/
312+
public static final String KEEP_ALIVE = "Keep-Alive";
307313
/**
308314
* The HTTP <a href="https://googlechrome.github.io/OriginTrials/#header">{@code Origin-Trial}</a>
309315
* 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
@@ -304,6 +304,12 @@ private ReferrerPolicyValues() {}
304304
public static final String LINK = "Link";
305305
/** The HTTP {@code Location} header field name. */
306306
public static final String LOCATION = "Location";
307+
/**
308+
* The HTTP {@code Keep-Alive} header field name.
309+
*
310+
* @since NEXT
311+
*/
312+
public static final String KEEP_ALIVE = "Keep-Alive";
307313
/**
308314
* The HTTP <a href="https://googlechrome.github.io/OriginTrials/#header">{@code Origin-Trial}</a>
309315
* header field name.

0 commit comments

Comments
 (0)