apple / swift-nio-transport-services

Extensions for SwiftNIO to support Apple platforms as first-class citizens.
https://swiftpackageindex.com/apple/swift-nio-transport-services/main/documentation/niotransportservices
Apache License 2.0
282 stars 71 forks source link

Allow retrieval of metadata from `NWConnection` #163

Closed dnadoba closed 1 year ago

dnadoba commented 1 year ago

Motivation:

We want to log the TLS version in gRPC. To get at the TLS version if NIOTS is in use, we need to retrieve the NWProtocolTLS.Metadata from a NWConnection.

Modifications:

Result:

Users outside of this library can now access metadata of an NWConnection.