From 5ff044a1a48e2208f9cbec0a5e5c91c792335c3d Mon Sep 17 00:00:00 2001 From: Eric Rosenberg Date: Tue, 2 Jul 2024 15:05:22 -0700 Subject: [PATCH 1/2] Make RFC 9209 proxy-status public --- Sources/HTTPTypes/HTTPFieldName.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Sources/HTTPTypes/HTTPFieldName.swift b/Sources/HTTPTypes/HTTPFieldName.swift index 19604dd..9671648 100644 --- a/Sources/HTTPTypes/HTTPFieldName.swift +++ b/Sources/HTTPTypes/HTTPFieldName.swift @@ -498,6 +498,11 @@ extension HTTPField.Name { /// https://fetch.spec.whatwg.org/ public static var xContentTypeOptions: Self { .init(rawName: "X-Content-Type-Options", canonicalName: "x-content-type-options") } + /// Proxy-Status + /// + /// https://www.rfc-editor.org/rfc/rfc9209.html + public static var proxyStatus: Self { .init(rawName: "Proxy-Status", canonicalName: "proxy-status") } + // Deprecated /// P3P static var p3P: Self { .init(rawName: "P3P", canonicalName: "p3p") } @@ -532,8 +537,6 @@ extension HTTPField.Name { static var secCHGeohash: Self { .init(rawName: "Sec-CH-Geohash", canonicalName: "sec-ch-geohash") } /// Client-Geohash static var clientGeohash: Self { .init(rawName: "Client-Geohash", canonicalName: "client-geohash") } - /// Proxy-Status - static var proxyStatus: Self { .init(rawName: "Proxy-Status", canonicalName: "proxy-status") } /// Proxy-QUIC-Forwarding static var proxyQUICForwarding: Self { .init(rawName: "Proxy-QUIC-Forwarding", canonicalName: "proxy-quic-forwarding") } /// Proxy-Config-Epoch From 8fd0302d6e5932b25347a97c3713d11a3838f395 Mon Sep 17 00:00:00 2001 From: Eric Rosenberg Date: Wed, 3 Jul 2024 14:11:19 -0700 Subject: [PATCH 2/2] alphabetical --- Sources/HTTPTypes/HTTPFieldName.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/HTTPTypes/HTTPFieldName.swift b/Sources/HTTPTypes/HTTPFieldName.swift index 9671648..e635e87 100644 --- a/Sources/HTTPTypes/HTTPFieldName.swift +++ b/Sources/HTTPTypes/HTTPFieldName.swift @@ -393,6 +393,11 @@ extension HTTPField.Name { /// https://www.rfc-editor.org/rfc/rfc9110.html public static var proxyAuthorization: Self { .init(rawName: "Proxy-Authorization", canonicalName: "proxy-authorization") } + /// Proxy-Status + /// + /// https://www.rfc-editor.org/rfc/rfc9209.html + public static var proxyStatus: Self { .init(rawName: "Proxy-Status", canonicalName: "proxy-status") } + /// Range /// /// https://www.rfc-editor.org/rfc/rfc9110.html @@ -498,11 +503,6 @@ extension HTTPField.Name { /// https://fetch.spec.whatwg.org/ public static var xContentTypeOptions: Self { .init(rawName: "X-Content-Type-Options", canonicalName: "x-content-type-options") } - /// Proxy-Status - /// - /// https://www.rfc-editor.org/rfc/rfc9209.html - public static var proxyStatus: Self { .init(rawName: "Proxy-Status", canonicalName: "proxy-status") } - // Deprecated /// P3P static var p3P: Self { .init(rawName: "P3P", canonicalName: "p3p") }