@@ -112,129 +112,358 @@ extension HTTPField.Name {
112
112
static var path : Self { . init( rawName: " :path " , canonicalName: " :path " ) }
113
113
static var `protocol` : Self { . init( rawName: " :protocol " , canonicalName: " :protocol " ) }
114
114
static var status : Self { . init( rawName: " :status " , canonicalName: " :status " ) }
115
+
115
116
/// Accept
117
+ ///
118
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
116
119
public static var accept : Self { . init( rawName: " Accept " , canonicalName: " accept " ) }
120
+
117
121
/// Accept-Encoding
122
+ ///
123
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
118
124
public static var acceptEncoding : Self { . init( rawName: " Accept-Encoding " , canonicalName: " accept-encoding " ) }
125
+
119
126
/// Accept-Language
127
+ ///
128
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
120
129
public static var acceptLanguage : Self { . init( rawName: " Accept-Language " , canonicalName: " accept-language " ) }
130
+
121
131
/// Accept-Ranges
132
+ ///
133
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
122
134
public static var acceptRanges : Self { . init( rawName: " Accept-Ranges " , canonicalName: " accept-ranges " ) }
135
+
123
136
/// Access-Control-Allow-Credentials
137
+ ///
138
+ /// https://fetch.spec.whatwg.org/
124
139
public static var accessControlAllowCredentials : Self { . init( rawName: " Access-Control-Allow-Credentials " , canonicalName: " access-control-allow-credentials " ) }
140
+
125
141
/// Access-Control-Allow-Headers
142
+ ///
143
+ /// https://fetch.spec.whatwg.org/
126
144
public static var accessControlAllowHeaders : Self { . init( rawName: " Access-Control-Allow-Headers " , canonicalName: " access-control-allow-headers " ) }
145
+
127
146
/// Access-Control-Allow-Methods
147
+ ///
148
+ /// https://fetch.spec.whatwg.org/
128
149
public static var accessControlAllowMethods : Self { . init( rawName: " Access-Control-Allow-Methods " , canonicalName: " access-control-allow-methods " ) }
150
+
129
151
/// Access-Control-Allow-Origin
152
+ ///
153
+ /// https://fetch.spec.whatwg.org/
130
154
public static var accessControlAllowOrigin : Self { . init( rawName: " Access-Control-Allow-Origin " , canonicalName: " access-control-allow-origin " ) }
155
+
131
156
/// Access-Control-Expose-Headers
157
+ ///
158
+ /// https://fetch.spec.whatwg.org/
132
159
public static var accessControlExposeHeaders : Self { . init( rawName: " Access-Control-Expose-Headers " , canonicalName: " access-control-expose-headers " ) }
160
+
133
161
/// Access-Control-Max-Age
162
+ ///
163
+ /// https://fetch.spec.whatwg.org/
134
164
public static var accessControlMaxAge : Self { . init( rawName: " Access-Control-Max-Age " , canonicalName: " access-control-max-age " ) }
165
+
135
166
/// Access-Control-Request-Headers
167
+ ///
168
+ /// https://fetch.spec.whatwg.org/
136
169
public static var accessControlRequestHeaders : Self { . init( rawName: " Access-Control-Request-Headers " , canonicalName: " access-control-request-headers " ) }
170
+
137
171
/// Access-Control-Request-Method
172
+ ///
173
+ /// https://fetch.spec.whatwg.org/
138
174
public static var accessControlRequestMethod : Self { . init( rawName: " Access-Control-Request-Method " , canonicalName: " access-control-request-method " ) }
175
+
139
176
/// Age
177
+ ///
178
+ /// https://www.rfc-editor.org/rfc/rfc9111.html
140
179
public static var age : Self { . init( rawName: " Age " , canonicalName: " age " ) }
141
- /// Alt-Svc
142
- public static var altSvc : Self { . init( rawName: " Alt-Svc " , canonicalName: " alt-svc " ) }
180
+
181
+ /// Allow
182
+ ///
183
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
184
+ public static var allow : Self { . init( rawName: " Allow " , canonicalName: " allow " ) }
185
+
143
186
/// Authentication-Info
187
+ ///
188
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
144
189
public static var authenticationInfo : Self { . init( rawName: " Authentication-Info " , canonicalName: " authentication-info " ) }
190
+
145
191
/// Authorization
192
+ ///
193
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
146
194
public static var authorization : Self { . init( rawName: " Authorization " , canonicalName: " authorization " ) }
195
+
147
196
/// Cache-Control
197
+ ///
198
+ /// https://www.rfc-editor.org/rfc/rfc9111.html
148
199
public static var cacheControl : Self { . init( rawName: " Cache-Control " , canonicalName: " cache-control " ) }
200
+
149
201
/// Connection
202
+ ///
203
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
150
204
public static var connection : Self { . init( rawName: " Connection " , canonicalName: " connection " ) }
205
+
151
206
/// Content-Disposition
207
+ ///
208
+ /// https://www.rfc-editor.org/rfc/rfc6266.html
152
209
public static var contentDisposition : Self { . init( rawName: " Content-Disposition " , canonicalName: " content-disposition " ) }
210
+
153
211
/// Content-Encoding
212
+ ///
213
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
154
214
public static var contentEncoding : Self { . init( rawName: " Content-Encoding " , canonicalName: " content-encoding " ) }
215
+
216
+ /// Content-Language
217
+ ///
218
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
219
+ public static var contentLanguage : Self { . init( rawName: " Content-Language " , canonicalName: " content-language " ) }
220
+
155
221
/// Content-Length
222
+ ///
223
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
156
224
public static var contentLength : Self { . init( rawName: " Content-Length " , canonicalName: " content-length " ) }
225
+
226
+ /// Content-Location
227
+ ///
228
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
229
+ public static var contentLocation : Self { . init( rawName: " Content-Location " , canonicalName: " content-location " ) }
230
+
231
+ /// Content-Range
232
+ ///
233
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
234
+ public static var contentRange : Self { . init( rawName: " Content-Range " , canonicalName: " content-range " ) }
235
+
157
236
/// Content-Security-Policy
237
+ ///
238
+ /// https://www.w3.org/TR/CSP/
158
239
public static var contentSecurityPolicy : Self { . init( rawName: " Content-Security-Policy " , canonicalName: " content-security-policy " ) }
240
+
241
+ /// Content-Security-Policy-Report-Only
242
+ ///
243
+ /// https://www.w3.org/TR/CSP/
244
+ public static var contentSecurityPolicyReportOnly : Self { . init( rawName: " Content-Security-Policy-Report-Only " , canonicalName: " content-security-policy-report-only " ) }
245
+
159
246
/// Content-Type
247
+ ///
248
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
160
249
public static var contentType : Self { . init( rawName: " Content-Type " , canonicalName: " content-type " ) }
250
+
161
251
/// Cookie
252
+ ///
253
+ /// https://www.rfc-editor.org/rfc/rfc6265.html
162
254
public static var cookie : Self { . init( rawName: " Cookie " , canonicalName: " cookie " ) }
255
+
256
+ /// Cross-Origin-Resource-Policy
257
+ ///
258
+ /// https://fetch.spec.whatwg.org/
259
+ public static var crossOriginResourcePolicy : Self { . init( rawName: " Cross-Origin-Resource-Policy " , canonicalName: " cross-origin-resource-policy " ) }
260
+
163
261
/// Date
262
+ ///
263
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
164
264
public static var date : Self { . init( rawName: " Date " , canonicalName: " date " ) }
265
+
165
266
/// Early-Data
267
+ ///
268
+ /// https://www.rfc-editor.org/rfc/rfc8470.html
166
269
public static var earlyData : Self { . init( rawName: " Early-Data " , canonicalName: " early-data " ) }
270
+
167
271
/// ETag
272
+ ///
273
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
168
274
public static var eTag : Self { . init( rawName: " ETag " , canonicalName: " etag " ) }
275
+
169
276
/// Expect
277
+ ///
278
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
170
279
public static var expect : Self { . init( rawName: " Expect " , canonicalName: " expect " ) }
280
+
171
281
/// Expires
282
+ ///
283
+ /// https://www.rfc-editor.org/rfc/rfc9111.html
172
284
public static var expires : Self { . init( rawName: " Expires " , canonicalName: " expires " ) }
173
- @available ( * , unavailable, message: " Please use HTTPRequest.authority instead " )
285
+
286
+ /// From
287
+ ///
288
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
289
+ public static var from : Self { . init( rawName: " From " , canonicalName: " from " ) }
290
+
174
291
/// Host
292
+ ///
293
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
294
+ @available ( * , unavailable, message: " Use HTTPRequest.authority instead " )
175
295
public static var host : Self { . init( rawName: " Host " , canonicalName: " host " ) }
296
+
297
+ /// If-Match
298
+ ///
299
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
300
+ public static var ifMatch : Self { . init( rawName: " If-Match " , canonicalName: " if-match " ) }
301
+
176
302
/// If-Modified-Since
303
+ ///
304
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
177
305
public static var ifModifiedSince : Self { . init( rawName: " If-Modified-Since " , canonicalName: " if-modified-since " ) }
306
+
178
307
/// If-None-Match
308
+ ///
309
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
179
310
public static var ifNoneMatch : Self { . init( rawName: " If-None-Match " , canonicalName: " if-none-match " ) }
311
+
180
312
/// If-Range
313
+ ///
314
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
181
315
public static var ifRange : Self { . init( rawName: " If-Range " , canonicalName: " if-range " ) }
182
- /// Keep-Alive
183
- public static var keepAlive : Self { . init( rawName: " Keep-Alive " , canonicalName: " keep-alive " ) }
316
+
317
+ /// If-Unmodified-Since
318
+ ///
319
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
320
+ public static var ifUnmodifiedSince : Self { . init( rawName: " If-Unmodified-Since " , canonicalName: " if-unmodified-since " ) }
321
+
184
322
/// Last-Modified
323
+ ///
324
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
185
325
public static var lastModified : Self { . init( rawName: " Last-Modified " , canonicalName: " last-modified " ) }
326
+
186
327
/// Location
328
+ ///
329
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
187
330
public static var location : Self { . init( rawName: " Location " , canonicalName: " location " ) }
331
+
332
+ /// Max-Forwards
333
+ ///
334
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
335
+ public static var maxForwards : Self { . init( rawName: " Max-Forwards " , canonicalName: " max-forwards " ) }
336
+
188
337
/// Origin
338
+ ///
339
+ /// https://www.rfc-editor.org/rfc/rfc6454.html
189
340
public static var origin : Self { . init( rawName: " Origin " , canonicalName: " origin " ) }
341
+
190
342
/// Priority
343
+ ///
344
+ /// https://www.rfc-editor.org/rfc/rfc9218.html
191
345
public static var priority : Self { . init( rawName: " Priority " , canonicalName: " priority " ) }
346
+
192
347
/// Proxy-Authenticate
348
+ ///
349
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
193
350
public static var proxyAuthenticate : Self { . init( rawName: " Proxy-Authenticate " , canonicalName: " proxy-authenticate " ) }
351
+
194
352
/// Proxy-Authentication-Info
353
+ ///
354
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
195
355
public static var proxyAuthenticationInfo : Self { . init( rawName: " Proxy-Authentication-Info " , canonicalName: " proxy-authentication-info " ) }
356
+
196
357
/// Proxy-Authorization
358
+ ///
359
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
197
360
public static var proxyAuthorization : Self { . init( rawName: " Proxy-Authorization " , canonicalName: " proxy-authorization " ) }
198
- /// Proxy-Connection
199
- public static var proxyConnection : Self { . init( rawName: " Proxy-Connection " , canonicalName: " proxy-connection " ) }
361
+
200
362
/// Range
363
+ ///
364
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
201
365
public static var range : Self { . init( rawName: " Range " , canonicalName: " range " ) }
366
+
202
367
/// Referer
368
+ ///
369
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
203
370
public static var referer : Self { . init( rawName: " Referer " , canonicalName: " referer " ) }
371
+
372
+ /// Retry-After
373
+ ///
374
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
375
+ public static var retryAfter : Self { . init( rawName: " Retry-After " , canonicalName: " retry-after " ) }
376
+
377
+ /// Sec-Purpose
378
+ ///
379
+ /// https://fetch.spec.whatwg.org/
380
+ public static var secPurpose : Self { . init( rawName: " Sec-Purpose " , canonicalName: " sec-purpose " ) }
381
+
204
382
/// Sec-WebSocket-Accept
383
+ ///
384
+ /// https://www.rfc-editor.org/rfc/rfc6455.html
205
385
public static var secWebSocketAccept : Self { . init( rawName: " Sec-WebSocket-Accept " , canonicalName: " sec-websocket-accept " ) }
386
+
206
387
/// Sec-WebSocket-Extensions
388
+ ///
389
+ /// https://www.rfc-editor.org/rfc/rfc6455.html
207
390
public static var secWebSocketExtensions : Self { . init( rawName: " Sec-WebSocket-Extensions " , canonicalName: " sec-websocket-extensions " ) }
391
+
208
392
/// Sec-WebSocket-Key
393
+ ///
394
+ /// https://www.rfc-editor.org/rfc/rfc6455.html
209
395
public static var secWebSocketKey : Self { . init( rawName: " Sec-WebSocket-Key " , canonicalName: " sec-websocket-key " ) }
396
+
210
397
/// Sec-WebSocket-Protocol
398
+ ///
399
+ /// https://www.rfc-editor.org/rfc/rfc6455.html
211
400
public static var secWebSocketProtocol : Self { . init( rawName: " Sec-WebSocket-Protocol " , canonicalName: " sec-websocket-protocol " ) }
401
+
212
402
/// Sec-WebSocket-Version
403
+ ///
404
+ /// https://www.rfc-editor.org/rfc/rfc6455.html
213
405
public static var secWebSocketVersion : Self { . init( rawName: " Sec-WebSocket-Version " , canonicalName: " sec-websocket-version " ) }
406
+
214
407
/// Server
408
+ ///
409
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
215
410
public static var server : Self { . init( rawName: " Server " , canonicalName: " server " ) }
411
+
216
412
/// Set-Cookie
413
+ ///
414
+ /// https://www.rfc-editor.org/rfc/rfc6265.html
217
415
public static var setCookie : Self { . init( rawName: " Set-Cookie " , canonicalName: " set-cookie " ) }
416
+
218
417
/// Strict-Transport-Security
418
+ ///
419
+ /// https://www.rfc-editor.org/rfc/rfc6797.html
219
420
public static var strictTransportSecurity : Self { . init( rawName: " Strict-Transport-Security " , canonicalName: " strict-transport-security " ) }
421
+
422
+ /// TE
423
+ ///
424
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
425
+ public static var te : Self { . init( rawName: " TE " , canonicalName: " te " ) }
426
+
220
427
/// Trailer
428
+ ///
429
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
221
430
public static var trailer : Self { . init( rawName: " Trailer " , canonicalName: " trailer " ) }
431
+
222
432
/// Transfer-Encoding
433
+ ///
434
+ /// https://www.rfc-editor.org/rfc/rfc9112.html
223
435
public static var transferEncoding : Self { . init( rawName: " Transfer-Encoding " , canonicalName: " transfer-encoding " ) }
436
+
224
437
/// Upgrade
438
+ ///
439
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
225
440
public static var upgrade : Self { . init( rawName: " Upgrade " , canonicalName: " upgrade " ) }
226
- /// Upgrade-Insecure-Requests
227
- public static var upgradeInsecureRequests : Self { . init( rawName: " Upgrade-Insecure-Requests " , canonicalName: " upgrade-insecure-requests " ) }
441
+
228
442
/// User-Agent
443
+ ///
444
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
229
445
public static var userAgent : Self { . init( rawName: " User-Agent " , canonicalName: " user-agent " ) }
446
+
230
447
/// Vary
448
+ ///
449
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
231
450
public static var vary : Self { . init( rawName: " Vary " , canonicalName: " vary " ) }
451
+
232
452
/// Via
453
+ ///
454
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
233
455
public static var via : Self { . init( rawName: " Via " , canonicalName: " via " ) }
456
+
234
457
/// WWW-Authenticate
458
+ ///
459
+ /// https://www.rfc-editor.org/rfc/rfc9110.html
235
460
public static var wwwAuthenticate : Self { . init( rawName: " WWW-Authenticate " , canonicalName: " www-authenticate " ) }
461
+
236
462
/// X-Content-Type-Options
463
+ ///
464
+ /// https://fetch.spec.whatwg.org/
237
465
public static var xContentTypeOptions : Self { . init( rawName: " X-Content-Type-Options " , canonicalName: " x-content-type-options " ) }
466
+
238
467
// Deprecated
239
468
/// P3P
240
469
static var p3P : Self { . init( rawName: " P3P " , canonicalName: " p3p " ) }
@@ -247,6 +476,14 @@ extension HTTPField.Name {
247
476
/// X-XSS-Protection
248
477
static var xXSSProtection : Self { . init( rawName: " X-XSS-Protection " , canonicalName: " x-xss-protection " ) }
249
478
// Internal
479
+ /// Alt-Svc
480
+ static var altSvc : Self { . init( rawName: " Alt-Svc " , canonicalName: " alt-svc " ) }
481
+ /// Keep-Alive
482
+ static var keepAlive : Self { . init( rawName: " Keep-Alive " , canonicalName: " keep-alive " ) }
483
+ /// Proxy-Connection
484
+ static var proxyConnection : Self { . init( rawName: " Proxy-Connection " , canonicalName: " proxy-connection " ) }
485
+ /// Upgrade-Insecure-Requests
486
+ static var upgradeInsecureRequests : Self { . init( rawName: " Upgrade-Insecure-Requests " , canonicalName: " upgrade-insecure-requests " ) }
250
487
/// Datagram-Flow-Id
251
488
static var datagramFlowId : Self { . init( rawName: " Datagram-Flow-Id " , canonicalName: " datagram-flow-id " ) }
252
489
/// Capsule-Protocol
0 commit comments