request.destroy([error])


在收到 Http2ServerRequestHttp2Stream 上调用 destroy()。 如果提供了 error,则会触发 'error' 事件,并将 error 作为参数传给该事件的任何监听器。

如果流已经被销毁,则什么也不做。

Calls destroy() on the Http2Stream that received the Http2ServerRequest. If error is provided, an 'error' event is emitted and error is passed as an argument to any listeners on the event.

It does nothing if the stream was already destroyed.