mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-30 05:28:45 +00:00
CustomDebugStringConvertible for HTTP2StreamID
This commit is contained in:
1 parent
95b557d617
commit
493ba60314
1 file changed
+11
@@ -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))"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user