mirror of
https://github.com/apple/swift-http-types
synced 2026-11-27 05:04:21 +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
@@ -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
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user