mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-25 04:47:50 +00:00
Motivation: As part of #214 we added a stream channel which deals with `HTTP2Frame.FramePayload` as well as the relevant entry points in `HTTP2StreamMultiplexer` to create these streams. We didn't add a corresponding set of tests. Modifications: - Duplicate `HTTP2StreamMultiplexerTests` - Refactor to make use of new stream creation function and new inbound stream initializer - Fix up a couple of bugs in `HTTP2StreamMultiplexer`: - activate pending streams on `channelActive` - deactivate pending streams on `channelInactive` - change stream writability for pending streams on `channelWritabilityChanged` - add implementation for `childChannelClosed(channelID:)` Result: - Tests for payload-based stream creation via `HTTP2StreamMultiplexer`