From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/request/integrity/index.html | 64 +++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 files/ja/web/api/request/integrity/index.html (limited to 'files/ja/web/api/request/integrity/index.html') diff --git a/files/ja/web/api/request/integrity/index.html b/files/ja/web/api/request/integrity/index.html new file mode 100644 index 0000000000..61d5bfe118 --- /dev/null +++ b/files/ja/web/api/request/integrity/index.html @@ -0,0 +1,64 @@ +--- +title: Request.integrity +slug: Web/API/Request/integrity +tags: + - API + - Experimental + - Fetch + - Property + - Reference + - integrity + - request +translation_of: Web/API/Request/integrity +--- +
{{APIRef("Fetch")}}
+ +

{{domxref("Request")}} インターフェイスの integrity 読み取り専用プロパティには、リクエストの サブリソース完全性 値が含まれています。

+ +

構文

+ +
var myIntegrity = request.integrity;
+ +

+ +

リクエストの サブリソース完全性 値 (例, sha256-BpfBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE=)。

+ +

完全性が指定されていない場合、 '' を返します。

+ +

+ +

次のスニペットでは {{domxref("Request.Request()")}} コンストラクタを使用して新しい request を作成し ( script と同じディレクトリにある画像ファイルの場合)、 request の integrity 値を変数に保存します:

+ +
var myRequest = new Request('flowers.jpg');
+var myIntegrity = myRequest.integrity;
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('Fetch','#dom-request-integrity','integrity')}}{{Spec2('Fetch')}}初回定義。
+ +

ブラウザーの実装状況

+ + + +

{{Compat("api.Request.integrity")}}

+ +

関連項目

+ + -- cgit v1.2.3-54-g00ecf