aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/response/formdata/index.html
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-08-13 17:24:28 +0900
committerGitHub <noreply@github.com>2021-08-13 17:24:28 +0900
commit8dba1bffc690b6a6fff95c1dd7c265b4ddef5ed4 (patch)
treeef39351e2e2931361e82091af6b7d5acd71fd171 /files/ja/web/api/response/formdata/index.html
parentbc7f4a4e1fbc3e9f8ae42ea528360347cb4a6be9 (diff)
downloadtranslated-content-8dba1bffc690b6a6fff95c1dd7c265b4ddef5ed4.tar.gz
translated-content-8dba1bffc690b6a6fff95c1dd7c265b4ddef5ed4.tar.bz2
translated-content-8dba1bffc690b6a6fff95c1dd7c265b4ddef5ed4.zip
Body ミックスインを廃止し、 Response インターフェイスへ統合 (#1898)
- orphaned にあった Body ミックスインを廃止 - Body ミックスインのメンバーを Response インターフェイスへ移動 - 関連する記事を 2021/08/04 時点の英語版に同期
Diffstat (limited to 'files/ja/web/api/response/formdata/index.html')
-rw-r--r--files/ja/web/api/response/formdata/index.html58
1 files changed, 58 insertions, 0 deletions
diff --git a/files/ja/web/api/response/formdata/index.html b/files/ja/web/api/response/formdata/index.html
new file mode 100644
index 0000000000..00e18dd12d
--- /dev/null
+++ b/files/ja/web/api/response/formdata/index.html
@@ -0,0 +1,58 @@
+---
+title: Response.formData()
+slug: Web/API/Response/formData
+tags:
+ - API
+ - Fetch
+ - Fetch API
+ - FormData
+ - Method
+ - NeedsExample
+ - Reference
+ - Response
+translation_of: Web/API/Response/formData
+original_slug: Web/API/Body/formData
+browser-compat: api.Response.formData
+---
+<div>{{APIRef("Fetch")}}</div>
+
+<p><strong><code>formData()</code></strong> は {{domxref("Response")}} インターフェイスのメソッドで、 {{domxref("Response")}} のストリームを取得して完全に読み取ります。 {{domxref("FormData")}} オブジェクトで解決されるプロミスを返します。</p>
+
+<div class="note">
+ <p><strong>メモ</strong>: これは主に<a href="/ja/docs/Web/API/Service_Worker_API">サービスワーカー</a>に関連しています。 ユーザーがフォームを送信し、サービスワーカーがリクエストに介入した場合を考えてみましょう。 例えば、キーと値のマップを取得するために <code>formData()</code> を呼び出し、一部のフィールドを修正した後、フォームをサーバー側に送信 (またはローカルで使用) することができます。</p>
+</div>
+
+<h2 id="Syntax">構文</h2>
+
+<pre class="brush: js"><em>response</em>.formData()
+.then(function(<em>formdata</em>) {
+ // formdata を使った何らかの処理
+});</pre>
+
+<h3 id="Parameters">引数</h3>
+
+<p>なし。</p>
+
+<h3 id="Return_value">返値</h3>
+
+<p>{{domxref("FormData")}} オブジェクトで解決される {{jsxref("Promise")}}。</p>
+
+<h2 id="Example">例</h2>
+
+<p>TBD.</p>
+
+<h2 id="Specifications">仕様書</h2>
+
+{{Specifications}}
+
+<h2 id="Browser_compatibility">ブラウザーの互換性</h2>
+
+<p>{{Compat}}</p>
+
+<h2 id="See_also">関連情報</h2>
+
+<ul>
+ <li><a href="/ja/docs/Web/API/Service_Worker_API">ServiceWorker API</a></li>
+ <li><a href="/ja/docs/Web/HTTP/CORS">HTTP アクセス制御 (CORS)</a></li>
+ <li><a href="/ja/docs/Web/HTTP">HTTP</a></li>
+</ul>