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:
add Channel.getMetadata(definition:) and Channel.getMetadataSync(definition:)
Result:
Users outside of this library can now access metadata of an NWConnection.
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 theNWProtocolTLS.Metadata
from aNWConnection
.Modifications:
Channel.getMetadata(definition:)
andChannel.getMetadataSync(definition:)
Result:
Users outside of this library can now access metadata of an
NWConnection
.