Motivation:
The HTTP2StreamChannel needs to be aware of the HTTP/2 state machine,
at least at some level. This is to ensure it can map that state
machine onto the (unfortunately implicit) NIO stream state machine
and appropriately clean up resources like stream promises.
Modifications:
Lots. Added stream state tracking, refactored the frame structure,
stopped creating stream 0 as a sub-stream, and more.
Result:
We no longer crash when the curl TCP connection goes away.
Motivation
The most common mechanism for negotiating HTTP/2 is to use ALPN.
We should support that.
Modifications:
Added a `ChannelPipeline` extension to configure a pipeline for
ALPN-based upgrade.
Added a property that indicates the ALPN tokens for HTTP/2 and
HTTP/1.1 use.
Result:
Should be possible to configure a channel pipeline for HTTP/2 work.