mirror of
https://github.com/apple/swift-http-types
synced 2026-11-30 05:18:47 +00:00
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:
1 parent
0fd14cc0fc
commit
db774a277f
10 files changed
+89
-27
No files matched your search
@@ -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") }
|
||||
|
||||
Reference in new issue
Block a user