mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
HTTPResponseStatus should print code and reason (#2257)
* HTTPResponseStatus should print code and reason * Update HTTPResponseStatusTests+XCTest.swift Co-authored-by: Carolina Cassedy <ccassedy@apple.com> Co-authored-by: Cory Benfield <lukasa@apple.com>
This commit is contained in:
3 files changed
+14
-1
No files matched your search
@@ -1311,6 +1311,12 @@ extension HTTPRequestHead: CustomStringConvertible {
|
||||
}
|
||||
}
|
||||
|
||||
extension HTTPResponseStatus: CustomStringConvertible {
|
||||
public var description: String {
|
||||
return "\(self.code) \(self.reasonPhrase)"
|
||||
}
|
||||
}
|
||||
|
||||
extension HTTPResponseHead: CustomStringConvertible {
|
||||
public var description: String {
|
||||
return "HTTPResponseHead { version: \(self.version), status: \(self.status), headers: \(self.headers) }"
|
||||
|
||||
Reference in new issue
Block a user