mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-26 04:57:50 +00:00
* Add no-op NIOHTTP2ConnectionDemultiplexer 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 `InboundUserEvent`s. 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. * review comments * no longer `nil` out demultiplexer on channelInactive * restructure calling `pendingUserEvent` & processing events * demultiplexer funcs use events, not components NIOHTTP2ConnectionDemultiplexer stream events now use event types directly rather than individual parameters which map to the event fields.