Creates an instance of LocalResponse.
ProtectedinitializedWhether the local response payload has been loaded.
Returns the HMAC signature of the local response from the secret key provided.
Secret key, either a string or a byte/byte array.
The HMAC signature of the local response.
Loads the local payload from a string, buffer, or file path.
Checks if the HMAC signature of the local response is valid.
Secret key, either a string or a byte/byte array.
The signature to be compared with.
True if the HMAC signature is valid.
Loads a local JSON payload into a typed prediction response wrapper.
Local response loaded from a file. Note: Has to be initialized through init() before use.