该函数返回 this 以与其他可读流保持一致。
this
新增于: v0.3.0
error
在接收到 IncomingMessage 的套接字上调用 destroy()。 如果提供了 error,则在套接字上触发 'error' 事件,并将 error 作为参数传给该事件的任何监听器。
IncomingMessage
destroy()
'error'
The function returns this for consistency with other Readable streams.
Added in: v0.3.0
Calls destroy() on the socket that received the IncomingMessage. If error is provided, an 'error' event is emitted on the socket and error is passed as an argument to any listeners on the event.