apple / swift-nio

Event-driven network application framework for high performance protocol servers & clients, non-blocking.
https://swiftpackageindex.com/apple/swift-nio/documentation
Apache License 2.0
7.86k stars 633 forks source link

Type-safe ChannelPipeline #39

Open weissi opened 6 years ago

weissi commented 6 years ago

It would be great to have a type-safe ChannelPipeline. The whole ChannelPipeline can't be all type-safe as we want to support arbitrary modifications of it at runtime (for example for HTTP/1 to HTTP/2 upgrades). However it would be great to be able to have at least a partially type-safe pipeline which could be fully type-safe for programs who don't need the dynamism.

weissi commented 6 years ago

I have some partial code doing that, currently blocked on https://bugs.swift.org/browse/SR-5546

PeterAdams-A commented 3 years ago

I think this is probably a clone of #1354