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
@@ -332,6 +332,8 @@ extension HTTPRequest: CustomDebugStringConvertible {
}
}
#if !hasFeature(Embedded)
extension HTTPRequest.PseudoHeaderFields: Codable {
public func encode(to encoder: Encoder) throws {
var container = encoder.unkeyedContainer()
@@ -450,6 +452,8 @@ extension HTTPRequest: Codable {
}
}
#endif
extension HTTPRequest.Method {
/// GET
///