mirror of
https://github.com/apple/swift-http-types
synced 2026-11-22 04:30:40 +00:00
Added known HTTP header field names from RFC 9842 (#119)
This commit is contained in:
1 parent
c98018204b
commit
e9b43cc452
1 file changed
+17
@@ -254,6 +254,13 @@ extension HTTPField.Name {
|
||||
/// https://www.rfc-editor.org/rfc/rfc9110.html
|
||||
public static var authorization: Self { .init(rawName: "Authorization", canonicalName: "authorization") }
|
||||
|
||||
/// Available-Dictionary
|
||||
///
|
||||
/// https://www.rfc-editor.org/rfc/rfc9842.html
|
||||
public static var availableDictionary: Self {
|
||||
.init(rawName: "Available-Dictionary", canonicalName: "available-dictionary")
|
||||
}
|
||||
|
||||
/// Cache-Control
|
||||
///
|
||||
/// https://www.rfc-editor.org/rfc/rfc9111.html
|
||||
@@ -332,6 +339,11 @@ extension HTTPField.Name {
|
||||
/// https://www.rfc-editor.org/rfc/rfc9110.html
|
||||
public static var date: Self { .init(rawName: "Date", canonicalName: "date") }
|
||||
|
||||
/// Dictionary-ID
|
||||
///
|
||||
/// https://www.rfc-editor.org/rfc/rfc9842.html
|
||||
public static var dictionaryId: Self { .init(rawName: "Dictionary-ID", canonicalName: "dictionary-id") }
|
||||
|
||||
/// Early-Data
|
||||
///
|
||||
/// https://www.rfc-editor.org/rfc/rfc8470.html
|
||||
@@ -531,6 +543,11 @@ extension HTTPField.Name {
|
||||
/// https://www.rfc-editor.org/rfc/rfc9110.html
|
||||
public static var upgrade: Self { .init(rawName: "Upgrade", canonicalName: "upgrade") }
|
||||
|
||||
/// Use-As-Dictionary
|
||||
///
|
||||
/// https://www.rfc-editor.org/rfc/rfc9842.html
|
||||
public static var useAsDictionary: Self { .init(rawName: "Use-As-Dictionary", canonicalName: "use-as-dictionary") }
|
||||
|
||||
/// User-Agent
|
||||
///
|
||||
/// https://www.rfc-editor.org/rfc/rfc9110.html
|
||||
|
||||
Reference in new issue
Block a user