Allow handlers in the pipeline to be notified when an HTTP2 stream is created or closed.
Modifications:
Store an instance of a NIOHTTP2StreamDelegate on the NIOHTTP2Handler and InlineStreamMultiplexer so that it may be called when streams are created or closed.
Added tests.
Result:
NIOHTTP2Handlers init'd with a streamDelegate will now call into that delegate's streamCreated and streamClosed functions.
Motivation:
Allow handlers in the pipeline to be notified when an HTTP2 stream is created or closed.
Modifications:
Store an instance of a
NIOHTTP2StreamDelegate
on theNIOHTTP2Handler
andInlineStreamMultiplexer
so that it may be called when streams are created or closed.Added tests.
Result:
NIOHTTP2Handler
s init'd with astreamDelegate
will now call into that delegate'sstreamCreated
andstreamClosed
functions.