Nodehttp2Http2Stream.closemethod Http2Stream.close#Http2Stream.close(code?: number,callback?: () => void,): voidCloses the Http2Stream instance by sending an RST_STREAM frame to the connected HTTP/2 peer. Parameters #optional#code: number = http2.constants.NGHTTP2_NO_ERRORUnsigned 32-bit integer identifying the error code. optional#callback: () => voidAn optional function registered to listen for the 'close' event. Return Type #void
method Http2Stream.close#Http2Stream.close(code?: number,callback?: () => void,): voidCloses the Http2Stream instance by sending an RST_STREAM frame to the connected HTTP/2 peer. Parameters #optional#code: number = http2.constants.NGHTTP2_NO_ERRORUnsigned 32-bit integer identifying the error code. optional#callback: () => voidAn optional function registered to listen for the 'close' event. Return Type #void