outgoingMessage.pipe()
覆盖旧版 Stream
的管道方法,其是 http.outgoingMessage
的父类。
由于 OutgoingMessage
应该是只写流,因此调用此函数将抛出 Error
。
因此,它禁用了从 Stream
继承的管道方法。
用户不应直接调用此函数。
Overrides the pipe method of legacy Stream
which is the parent class of
http.outgoingMessage
.
Since OutgoingMessage
should be a write-only stream,
call this function will throw an Error
. Thus, it disabled the pipe method
it inherits from Stream
.
The User should not call this function directly.