'wantTrailers' 事件
'wantTrailers'
事件在 Http2Stream
已将要在帧上发送的最后 DATA
帧排队并且 Http2Stream
准备好发送尾随标头时触发。
在发起请求或响应时,必须设置 waitForTrailers
选项才能触发此事件。
The 'wantTrailers'
event is emitted when the Http2Stream
has queued the
final DATA
frame to be sent on a frame and the Http2Stream
is ready to send
trailing headers. When initiating a request or response, the waitForTrailers
option must be set for this event to be emitted.