Make QUERY method public (#130)

This commit is contained in:
Guoye Zhang authored and GitHub committed 2026-06-22 15:33:26 -07:00
1 parent 141600d7e6
commit 5b99e008ff
2 files changed
+4 -2

No files matched your search

+1
View File
@@ -41,6 +41,7 @@ let availabilityMacros: KeyValuePairs<String, String> = [
"HTTPTypes 1.2": "macOS 10.0",
"HTTPTypes 1.3": "macOS 10.0",
"HTTPTypes 1.6": "macOS 10.0",
"HTTPTypes 1.7": "macOS 10.0",
]
for target in package.targets {
+3 -2
View File
@@ -506,8 +506,9 @@ extension HTTPRequest.Method {
/// QUERY
///
/// https://datatracker.ietf.org/doc/draft-ietf-httpbis-safe-method-w-body/
static var query: Self { .init(unchecked: "QUERY") }
/// https://www.rfc-editor.org/rfc/rfc10008.html
@available(HTTPTypes 1.7, *)
public static var query: Self { .init(unchecked: "QUERY") }
/// CONNECT-UDP
static var connectUDP: Self { .init(unchecked: "CONNECT-UDP") }