Request.functions.getIntegrity
fx-fetch / Request / getIntegrity
Function: getIntegrity()
Section titled “Function: getIntegrity()”getIntegrity(
self):string|undefined
Defined in: packages/fx-fetch/src/Request/getIntegrity.ts:21
Gets the integrity value of the request.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”string | undefined
Example
Section titled “Example”import { Request } from 'fx-fetch';
const request = Request.make({ url: 'https://api.example.com', integrity: 'sha256-abcdef1234567890'});const integrity = Request.getIntegrity(request);console.log(integrity); // 'sha256-abcdef1234567890'0.1.0