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

Make `NIOTSNetworkEvents` initialisers public #147

Closed dnadoba closed 2 years ago

dnadoba commented 2 years ago

Type in the NIOTSNetworkEvents namespace are all public, but users can’t construct them as the initialisers aren’t public. That’s an unnecessary limitation, and it blocks certain kinds of unit testing. We should therefore add public inits to all types in the NIOTSNetworkEvents namespace.

Blocks https://github.com/swift-server/async-http-client/issues/589