Currently, incoming streams are destroyed, if the onstream callback is not set.
This sounds at first sight logically, however one can also use for http/3 onHeaders callback, later with webtransport support, it would be also onsessionid which is called for a webtransport data stream.
Then for http/3 onstream is most times pretty useless, as the other callbacks, which are opposed to the current docu are called later than onstream for h3 are more useful. So I have actually only stubs in onstream.
This is related to @pimterry api redesign (@jasnell may be also interested).
Currently, incoming streams are destroyed, if the
onstreamcallback is not set.This sounds at first sight logically, however one can also use for http/3
onHeaderscallback, later with webtransport support, it would be alsoonsessionidwhich is called for a webtransport data stream.Then for http/3
onstreamis most times pretty useless, as the other callbacks, which are opposed to the current docu are called later thanonstreamfor h3 are more useful. So I have actually only stubs inonstream.This is related to @pimterry api redesign (@jasnell may be also interested).