Skip to content

Commit 503ba42

Browse files
klueverGoogle Java Core Libraries
authored and
Google Java Core Libraries
committed
RELNOTES=Adds `HttpHeaders.ALT_SVC` PiperOrigin-RevId: 681113423
1 parent f358c05 commit 503ba42

File tree

2 files changed

+88
-38
lines changed

2 files changed

+88
-38
lines changed

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

+44-19
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,28 @@ private HttpHeaders() {}
7979
* @since 28.0
8080
*/
8181
public static final String CROSS_ORIGIN_RESOURCE_POLICY = "Cross-Origin-Resource-Policy";
82+
8283
/**
83-
* The HTTP <a href="https://tools.ietf.org/html/rfc8470">{@code Early-Data}</a> header field
84-
* name.
84+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc8470">{@code Early-Data}</a> header
85+
* field name.
8586
*
8687
* @since 27.0
8788
*/
8889
public static final String EARLY_DATA = "Early-Data";
90+
8991
/** The HTTP {@code Expect} header field name. */
9092
public static final String EXPECT = "Expect";
9193
/** The HTTP {@code From} header field name. */
9294
public static final String FROM = "From";
95+
9396
/**
94-
* The HTTP <a href="https://tools.ietf.org/html/rfc7239">{@code Forwarded}</a> header field name.
97+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc7239">{@code Forwarded}</a> header
98+
* field name.
9599
*
96100
* @since 20.0
97101
*/
98102
public static final String FORWARDED = "Forwarded";
103+
99104
/**
100105
* The HTTP {@code Follow-Only-When-Prerender-Shown} header field name.
101106
*
@@ -104,13 +109,15 @@ private HttpHeaders() {}
104109
public static final String FOLLOW_ONLY_WHEN_PRERENDER_SHOWN = "Follow-Only-When-Prerender-Shown";
105110
/** The HTTP {@code Host} header field name. */
106111
public static final String HOST = "Host";
112+
107113
/**
108-
* The HTTP <a href="https://tools.ietf.org/html/rfc7540#section-3.2.1">{@code HTTP2-Settings}
109-
* </a> header field name.
114+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc7540#section-3.2.1">{@code
115+
* HTTP2-Settings} </a> header field name.
110116
*
111117
* @since 24.0
112118
*/
113119
public static final String HTTP2_SETTINGS = "HTTP2-Settings";
120+
114121
/** The HTTP {@code If-Match} header field name. */
115122
public static final String IF_MATCH = "If-Match";
116123
/** The HTTP {@code If-Modified-Since} header field name. */
@@ -817,62 +824,71 @@ private ReferrerPolicyValues() {}
817824
* @since 26.0
818825
*/
819826
public static final String SEC_METADATA = "Sec-Metadata";
827+
820828
/**
821-
* The HTTP <a href="https://tools.ietf.org/html/draft-ietf-tokbind-https">{@code
829+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/draft-ietf-tokbind-https">{@code
822830
* Sec-Token-Binding}</a> header field name.
823831
*
824832
* @since 25.1
825833
*/
826834
public static final String SEC_TOKEN_BINDING = "Sec-Token-Binding";
835+
827836
/**
828-
* The HTTP <a href="https://tools.ietf.org/html/draft-ietf-tokbind-ttrp">{@code
837+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/draft-ietf-tokbind-ttrp">{@code
829838
* Sec-Provided-Token-Binding-ID}</a> header field name.
830839
*
831840
* @since 25.1
832841
*/
833842
public static final String SEC_PROVIDED_TOKEN_BINDING_ID = "Sec-Provided-Token-Binding-ID";
843+
834844
/**
835-
* The HTTP <a href="https://tools.ietf.org/html/draft-ietf-tokbind-ttrp">{@code
845+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/draft-ietf-tokbind-ttrp">{@code
836846
* Sec-Referred-Token-Binding-ID}</a> header field name.
837847
*
838848
* @since 25.1
839849
*/
840850
public static final String SEC_REFERRED_TOKEN_BINDING_ID = "Sec-Referred-Token-Binding-ID";
851+
841852
/**
842-
* The HTTP <a href="https://tools.ietf.org/html/rfc6455">{@code Sec-WebSocket-Accept}</a> header
843-
* field name.
853+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc6455">{@code
854+
* Sec-WebSocket-Accept}</a> header field name.
844855
*
845856
* @since 28.0
846857
*/
847858
public static final String SEC_WEBSOCKET_ACCEPT = "Sec-WebSocket-Accept";
859+
848860
/**
849-
* The HTTP <a href="https://tools.ietf.org/html/rfc6455">{@code Sec-WebSocket-Extensions}</a>
850-
* header field name.
861+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc6455">{@code
862+
* Sec-WebSocket-Extensions}</a> header field name.
851863
*
852864
* @since 28.0
853865
*/
854866
public static final String SEC_WEBSOCKET_EXTENSIONS = "Sec-WebSocket-Extensions";
867+
855868
/**
856-
* The HTTP <a href="https://tools.ietf.org/html/rfc6455">{@code Sec-WebSocket-Key}</a> header
857-
* field name.
869+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc6455">{@code Sec-WebSocket-Key}</a>
870+
* header field name.
858871
*
859872
* @since 28.0
860873
*/
861874
public static final String SEC_WEBSOCKET_KEY = "Sec-WebSocket-Key";
875+
862876
/**
863-
* The HTTP <a href="https://tools.ietf.org/html/rfc6455">{@code Sec-WebSocket-Protocol}</a>
864-
* header field name.
877+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc6455">{@code
878+
* Sec-WebSocket-Protocol}</a> header field name.
865879
*
866880
* @since 28.0
867881
*/
868882
public static final String SEC_WEBSOCKET_PROTOCOL = "Sec-WebSocket-Protocol";
883+
869884
/**
870-
* The HTTP <a href="https://tools.ietf.org/html/rfc6455">{@code Sec-WebSocket-Version}</a> header
871-
* field name.
885+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc6455">{@code
886+
* Sec-WebSocket-Version}</a> header field name.
872887
*
873888
* @since 28.0
874889
*/
875890
public static final String SEC_WEBSOCKET_VERSION = "Sec-WebSocket-Version";
891+
876892
/**
877893
* The HTTP <a href="https://patcg-individual-drafts.github.io/topics/">{@code
878894
* Sec-Browsing-Topics}</a> header field name.
@@ -924,9 +940,18 @@ private ReferrerPolicyValues() {}
924940
public static final String AD_AUCTION_ALLOWED = "Ad-Auction-Allowed";
925941

926942
/**
927-
* The HTTP <a href="https://tools.ietf.org/html/rfc8586">{@code CDN-Loop}</a> header field name.
943+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc8586">{@code CDN-Loop}</a> header
944+
* field name.
928945
*
929946
* @since 28.0
930947
*/
931948
public static final String CDN_LOOP = "CDN-Loop";
949+
950+
/**
951+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc7838#page-8">{@code Alt-Svc}</a>
952+
* header field name.
953+
*
954+
* @since NEXT
955+
*/
956+
public static final String ALT_SVC = "Alt-Svc";
932957
}

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

+44-19
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,28 @@ private HttpHeaders() {}
7979
* @since 28.0
8080
*/
8181
public static final String CROSS_ORIGIN_RESOURCE_POLICY = "Cross-Origin-Resource-Policy";
82+
8283
/**
83-
* The HTTP <a href="https://tools.ietf.org/html/rfc8470">{@code Early-Data}</a> header field
84-
* name.
84+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc8470">{@code Early-Data}</a> header
85+
* field name.
8586
*
8687
* @since 27.0
8788
*/
8889
public static final String EARLY_DATA = "Early-Data";
90+
8991
/** The HTTP {@code Expect} header field name. */
9092
public static final String EXPECT = "Expect";
9193
/** The HTTP {@code From} header field name. */
9294
public static final String FROM = "From";
95+
9396
/**
94-
* The HTTP <a href="https://tools.ietf.org/html/rfc7239">{@code Forwarded}</a> header field name.
97+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc7239">{@code Forwarded}</a> header
98+
* field name.
9599
*
96100
* @since 20.0
97101
*/
98102
public static final String FORWARDED = "Forwarded";
103+
99104
/**
100105
* The HTTP {@code Follow-Only-When-Prerender-Shown} header field name.
101106
*
@@ -104,13 +109,15 @@ private HttpHeaders() {}
104109
public static final String FOLLOW_ONLY_WHEN_PRERENDER_SHOWN = "Follow-Only-When-Prerender-Shown";
105110
/** The HTTP {@code Host} header field name. */
106111
public static final String HOST = "Host";
112+
107113
/**
108-
* The HTTP <a href="https://tools.ietf.org/html/rfc7540#section-3.2.1">{@code HTTP2-Settings}
109-
* </a> header field name.
114+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc7540#section-3.2.1">{@code
115+
* HTTP2-Settings} </a> header field name.
110116
*
111117
* @since 24.0
112118
*/
113119
public static final String HTTP2_SETTINGS = "HTTP2-Settings";
120+
114121
/** The HTTP {@code If-Match} header field name. */
115122
public static final String IF_MATCH = "If-Match";
116123
/** The HTTP {@code If-Modified-Since} header field name. */
@@ -817,62 +824,71 @@ private ReferrerPolicyValues() {}
817824
* @since 26.0
818825
*/
819826
public static final String SEC_METADATA = "Sec-Metadata";
827+
820828
/**
821-
* The HTTP <a href="https://tools.ietf.org/html/draft-ietf-tokbind-https">{@code
829+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/draft-ietf-tokbind-https">{@code
822830
* Sec-Token-Binding}</a> header field name.
823831
*
824832
* @since 25.1
825833
*/
826834
public static final String SEC_TOKEN_BINDING = "Sec-Token-Binding";
835+
827836
/**
828-
* The HTTP <a href="https://tools.ietf.org/html/draft-ietf-tokbind-ttrp">{@code
837+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/draft-ietf-tokbind-ttrp">{@code
829838
* Sec-Provided-Token-Binding-ID}</a> header field name.
830839
*
831840
* @since 25.1
832841
*/
833842
public static final String SEC_PROVIDED_TOKEN_BINDING_ID = "Sec-Provided-Token-Binding-ID";
843+
834844
/**
835-
* The HTTP <a href="https://tools.ietf.org/html/draft-ietf-tokbind-ttrp">{@code
845+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/draft-ietf-tokbind-ttrp">{@code
836846
* Sec-Referred-Token-Binding-ID}</a> header field name.
837847
*
838848
* @since 25.1
839849
*/
840850
public static final String SEC_REFERRED_TOKEN_BINDING_ID = "Sec-Referred-Token-Binding-ID";
851+
841852
/**
842-
* The HTTP <a href="https://tools.ietf.org/html/rfc6455">{@code Sec-WebSocket-Accept}</a> header
843-
* field name.
853+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc6455">{@code
854+
* Sec-WebSocket-Accept}</a> header field name.
844855
*
845856
* @since 28.0
846857
*/
847858
public static final String SEC_WEBSOCKET_ACCEPT = "Sec-WebSocket-Accept";
859+
848860
/**
849-
* The HTTP <a href="https://tools.ietf.org/html/rfc6455">{@code Sec-WebSocket-Extensions}</a>
850-
* header field name.
861+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc6455">{@code
862+
* Sec-WebSocket-Extensions}</a> header field name.
851863
*
852864
* @since 28.0
853865
*/
854866
public static final String SEC_WEBSOCKET_EXTENSIONS = "Sec-WebSocket-Extensions";
867+
855868
/**
856-
* The HTTP <a href="https://tools.ietf.org/html/rfc6455">{@code Sec-WebSocket-Key}</a> header
857-
* field name.
869+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc6455">{@code Sec-WebSocket-Key}</a>
870+
* header field name.
858871
*
859872
* @since 28.0
860873
*/
861874
public static final String SEC_WEBSOCKET_KEY = "Sec-WebSocket-Key";
875+
862876
/**
863-
* The HTTP <a href="https://tools.ietf.org/html/rfc6455">{@code Sec-WebSocket-Protocol}</a>
864-
* header field name.
877+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc6455">{@code
878+
* Sec-WebSocket-Protocol}</a> header field name.
865879
*
866880
* @since 28.0
867881
*/
868882
public static final String SEC_WEBSOCKET_PROTOCOL = "Sec-WebSocket-Protocol";
883+
869884
/**
870-
* The HTTP <a href="https://tools.ietf.org/html/rfc6455">{@code Sec-WebSocket-Version}</a> header
871-
* field name.
885+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc6455">{@code
886+
* Sec-WebSocket-Version}</a> header field name.
872887
*
873888
* @since 28.0
874889
*/
875890
public static final String SEC_WEBSOCKET_VERSION = "Sec-WebSocket-Version";
891+
876892
/**
877893
* The HTTP <a href="https://patcg-individual-drafts.github.io/topics/">{@code
878894
* Sec-Browsing-Topics}</a> header field name.
@@ -924,9 +940,18 @@ private ReferrerPolicyValues() {}
924940
public static final String AD_AUCTION_ALLOWED = "Ad-Auction-Allowed";
925941

926942
/**
927-
* The HTTP <a href="https://tools.ietf.org/html/rfc8586">{@code CDN-Loop}</a> header field name.
943+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc8586">{@code CDN-Loop}</a> header
944+
* field name.
928945
*
929946
* @since 28.0
930947
*/
931948
public static final String CDN_LOOP = "CDN-Loop";
949+
950+
/**
951+
* The HTTP <a href="https://datatracker.ietf.org/doc/html/rfc7838#page-8">{@code Alt-Svc}</a>
952+
* header field name.
953+
*
954+
* @since NEXT
955+
*/
956+
public static final String ALT_SVC = "Alt-Svc";
932957
}

0 commit comments

Comments
 (0)