CustomDebugStringConvertible for HTTP2StreamID

This commit is contained in:
Cory Benfield committed 2018-05-11 10:56:34 +01:00
1 parent 95b557d617
commit 493ba60314
1 file changed
+11
+11
View File
@@ -147,3 +147,14 @@ public class HTTP2ConnectionManager {
return internalID
}
}
extension HTTP2StreamID: CustomDebugStringConvertible {
public var debugDescription: String {
var streamIDDescription: String = "unknown"
if let networkStreamID = self.networkStreamID {
streamIDDescription = String(networkStreamID)
}
return "HTTP2StreamID(\(streamIDDescription))"
}
}