method Http2Stream.close
Jump to headingHttp2Stream.close(code?: number,callback?: () => void,): void
Closes the Http2Stream
instance by sending an RST_STREAM
frame to the
connected HTTP/2 peer.
Parameters Jump to heading
optional
Jump to headingcode: number = http2.constants.NGHTTP2_NO_ERROR
Unsigned 32-bit integer identifying the error code.
optional
Jump to headingcallback: () => void
An optional function registered to listen for the 'close'
event.
Return Type Jump to heading
void