apple / swift-nio-http2

HTTP/2 support for SwiftNIO
https://swiftpackageindex.com/apple/swift-nio-http2/main/documentation/niohttp2
Apache License 2.0
465 stars 82 forks source link

Add no-op NIOHTTP2ConnectionDemultiplexer #377

Closed rnro closed 1 year ago

rnro commented 1 year ago

Motivation:

This change prepares for future work to embed the connection demultiplexer within the HTTP2ChannelHandler which will improve performance by removing the need for passing expensive InboundUserEvents.

Modifications:

This first step defines a new protocol (NIOHTTP2ConnectionDemultiplexer) which will later be used to abstract over the embedded and legacy separate demultiplexer code but at the moment should not change the logic.

Result:

Behaviour should be unchanged.