Support embedded Swift (#116)

In order for swift-http-api-proposal to support embedded Swift,
swift-http-types has to support embedded Swift first.
This commit is contained in:
Guoye Zhang authored and GitHub committed 2026-06-05 10:54:44 -07:00
1 parent 0fd14cc0fc
commit db774a277f
10 files changed
+89 -27

No files matched your search

+4
View File
@@ -111,6 +111,8 @@ extension HTTPField.Name: LosslessStringConvertible {
}
}
#if !hasFeature(Embedded)
extension HTTPField.Name: CustomPlaygroundDisplayConvertible {
public var playgroundDescription: Any {
self.description
@@ -148,6 +150,8 @@ extension HTTPField.Name: Codable {
}
}
#endif
extension HTTPField.Name {
static var method: Self { .init(rawName: ":method", canonicalName: ":method") }
static var scheme: Self { .init(rawName: ":scheme", canonicalName: ":scheme") }