stream.stopSending([code])
请求对端停止在此流上发送数据,发送一个携带 code 的 STOP_SENDING 帧。可写端保持打开,所以这一端仍然可以发送数据。
🌐 Asks the peer to stop sending data on this stream, sending a STOP_SENDING
frame carrying code. The writable side is left open, so this end can
still send data.
不会对这个操作提供任何确认。如果流已经被销毁,或者它是本地发起的单向流(没有可中止的可读端),这个调用什么也不会做。
🌐 No acknowledgement of this action is provided. The call does nothing if the stream has been destroyed, or if it is a locally-initiated unidirectional stream, which has no readable side to abort.