refactored out http2 stream handler.