Skip to content

Commit 5d911d2

Browse files
authored
feat(utils/headers): add HTTP fields newly registered with IANA (#5153)
1 parent 30277ae commit 5d911d2

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

‎src/utils/headers.ts‎

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export type RequestHeader =
1717
| 'Accept-Language'
1818
| 'Accept-Patch'
1919
| 'Accept-Post'
20+
| 'Accept-Query'
2021
| 'Accept-Ranges'
2122
| 'Accept-Signature'
2223
| 'Access-Control'
@@ -28,6 +29,7 @@ export type RequestHeader =
2829
| 'Access-Control-Max-Age'
2930
| 'Access-Control-Request-Headers'
3031
| 'Access-Control-Request-Method'
32+
| 'Activate-Storage-Access'
3133
| 'Age'
3234
| 'Allow'
3335
| 'ALPN'
@@ -46,6 +48,8 @@ export type RequestHeader =
4648
| 'C-PEP'
4749
| 'C-PEP-Info'
4850
| 'Cache-Control'
51+
| 'Cache-Group-Invalidation'
52+
| 'Cache-Groups'
4953
| 'Cache-Status'
5054
| 'Cal-Managed-ID'
5155
| 'CalDAV-Timezones'
@@ -100,6 +104,7 @@ export type RequestHeader =
100104
| 'Depth'
101105
| 'Derived-From'
102106
| 'Destination'
107+
| 'Detached-JWS'
103108
| 'Differential-ID'
104109
| 'Dictionary-ID'
105110
| 'Digest'
@@ -127,6 +132,7 @@ export type RequestHeader =
127132
| 'If-Unmodified-Since'
128133
| 'IM'
129134
| 'Include-Referred-Token-Binding-ID'
135+
| 'Incremental'
130136
| 'Isolation'
131137
| 'Keep-Alive'
132138
| 'Label'
@@ -200,6 +206,11 @@ export type RequestHeader =
200206
| 'Safe'
201207
| 'Schedule-Reply'
202208
| 'Schedule-Tag'
209+
| 'Sec-Fetch-Dest'
210+
| 'Sec-Fetch-Mode'
211+
| 'Sec-Fetch-Site'
212+
| 'Sec-Fetch-Storage-Access'
213+
| 'Sec-Fetch-User'
203214
| 'Sec-GPC'
204215
| 'Sec-Purpose'
205216
| 'Sec-Token-Binding'
@@ -213,6 +224,7 @@ export type RequestHeader =
213224
| 'Server-Timing'
214225
| 'Set-Cookie'
215226
| 'Set-Cookie2'
227+
| 'Set-Txn'
216228
| 'SetProfile'
217229
| 'Signature'
218230
| 'Signature-Input'
@@ -233,6 +245,7 @@ export type RequestHeader =
233245
| 'Trailer'
234246
| 'Transfer-Encoding'
235247
| 'TTL'
248+
| 'Unencoded-Digest'
236249
| 'Upgrade'
237250
| 'Urgency'
238251
| 'URI'
@@ -244,21 +257,26 @@ export type RequestHeader =
244257
| 'Want-Content-Digest'
245258
| 'Want-Digest'
246259
| 'Want-Repr-Digest'
260+
| 'Want-Unencoded-Digest'
247261
| 'Warning'
248262
| 'WWW-Authenticate'
249263
| 'X-Content-Type-Options'
250264
| 'X-Frame-Options'
251265

252266
export type ResponseHeader =
267+
| 'Accept-Query'
253268
| 'Access-Control-Allow-Credentials'
254269
| 'Access-Control-Allow-Headers'
255270
| 'Access-Control-Allow-Methods'
256271
| 'Access-Control-Allow-Origin'
257272
| 'Access-Control-Expose-Headers'
258273
| 'Access-Control-Max-Age'
274+
| 'Activate-Storage-Access'
259275
| 'Age'
260276
| 'Allow'
261277
| 'Cache-Control'
278+
| 'Cache-Group-Invalidation'
279+
| 'Cache-Groups'
262280
| 'Clear-Site-Data'
263281
| 'Content-Disposition'
264282
| 'Content-Encoding'
@@ -276,6 +294,7 @@ export type ResponseHeader =
276294
| 'Date'
277295
| 'ETag'
278296
| 'Expires'
297+
| 'Incremental'
279298
| 'Last-Modified'
280299
| 'Location'
281300
| 'Permissions-Policy'
@@ -304,14 +323,17 @@ export type ResponseHeader =
304323
| 'Server-Timing'
305324
| 'Service-Worker-Navigation-Preload'
306325
| 'Set-Cookie'
326+
| 'Set-Txn'
307327
| 'Strict-Transport-Security'
308328
| 'Timing-Allow-Origin'
309329
| 'Trailer'
310330
| 'Transfer-Encoding'
331+
| 'Unencoded-Digest'
311332
| 'Upgrade'
312333
| 'Vary'
313-
| 'WWW-Authenticate'
334+
| 'Want-Unencoded-Digest'
314335
| 'Warning'
336+
| 'WWW-Authenticate'
315337
| 'X-Content-Type-Options'
316338
| 'X-DNS-Prefetch-Control'
317339
| 'X-Frame-Options'

0 commit comments

Comments
 (0)