mirror of
https://github.com/apple/swift-http-types
synced 2026-11-22 04:30:40 +00:00
Make QUERY method public (#130)
This commit is contained in:
1 parent
141600d7e6
commit
5b99e008ff
2 files changed
+4
-2
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -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") }
|
||||
|
||||
Reference in new issue
Block a user