You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
Starting to work through the details of how trailing headers should work on the API level, which will drive how they function on the lower bits...
Two specific bits:
Ending a stream without sending trailing headers will close the writable side without sending any trailing headers.
Calling submitTrailers() on an open stream will have the side effect of closing the writable side of the stream, so it should only be called when all data has been sent.
Therefore, there are two basic scenarios:
No trailers:
stream.write('hello ')stream.end('world')// Calling stream.submitTrailers() at this point would throw
With trailers:
stream.write('hello ')stream.write('world')stream.submitTrailers({foo: 'bar'})// Closes the stream! like calling end()// Calling stream.write() at this point would throw
HTTP/3 Trailing headers are not yet fully supported
The text was updated successfully, but these errors were encountered: