Request.integrity
値
リクエストのサブリソース完全性の値(sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE= など)。
完全性が指定されていない場合、 '' を返します。
例
次のスニペットでは Request.Request() コンストラクターを使用して新しいリクエストを作成し(スクリプトと同じディレクトリーにある画像ファイルに対して)、そのリクエストの integrity 値を変数に保存します。
js
const myRequest = new Request('flowers.jpg');
const myIntegrity = myRequest.integrity;
仕様書
| Specification |
|---|
| Fetch Standard # ref-for-dom-request-integrity② |
ブラウザーの互換性
BCD tables only load in the browser