stream.closed


当流完全关闭时会兑现的承诺。当流干净地关闭(包括空闲超时)时,它会被解决。当流由于 QUIC 错误而关闭时(例如,同行重置流,带有非零错误代码的 CONNECTION_CLOSE),它会以 ERR_QUIC_APPLICATION_ERRORERR_QUIC_TRANSPORT_ERROR 被拒绝。

🌐 A promise that is fulfilled when the stream is fully closed. It resolves when the stream closes cleanly (including idle timeout). It rejects with an ERR_QUIC_APPLICATION_ERROR or ERR_QUIC_TRANSPORT_ERROR when the stream is closed due to a QUIC error (e.g., stream reset by the peer, CONNECTION_CLOSE with a non-zero error code).