verify.update(data[, inputEncoding])


使用给定的 data 更新 Verify 内容,其编码由 inputEncoding 指定。如果未提供 inputEncoding,且 data 是字符串,则默认使用 'utf8' 编码。如果 dataBufferTypedArrayDataView,则忽略 inputEncoding

【Updates the Verify content with the given data, the encoding of which is given in inputEncoding. If inputEncoding is not provided, and the data is a string, an encoding of 'utf8' is enforced. If data is a Buffer, TypedArray, or DataView, then inputEncoding is ignored.】

这可以在流式传输时使用新数据多次调用。

【This can be called many times with new data as it is streamed.】