The documentation says for body:
When omitted, the stream starts half-closed (writable side open, no body queued).
As one is allowed to use setBody afterwards or use writer afterwards.
I think it is better to call it half-open as no fin is send immediately? (Or am I am mistaken... @jasnell )
The same of course for unidirectional stream.
Of course, this is only a nit....
The documentation says for body:
As one is allowed to use
setBodyafterwards or usewriterafterwards.I think it is better to call it
half-openas no fin is send immediately? (Or am I am mistaken... @jasnell )The same of course for unidirectional stream.
Of course, this is only a nit....