このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 最新のリビジョン 両方とも次のリビジョン | ||
slim:4:middleware [2020/10/13 16:09] y2sunlight [Content Length Middleware] |
slim:4:middleware [2020/10/13 16:21] y2sunlight [Supported media types] |
||
---|---|---|---|
行 389: | 行 389: | ||
\\ | \\ | ||
- | ==== Posted | + | ==== ポストされたJSON、フォーム、XMLデータ |
- | No changes are required to the POST handler because the BodyParsingMiddleware | + | POSTハンドラーを変更する必要はありません。というのは、'' |
- | '' | + | ブラウザからウェブサイトにポストされたデータの場合、$request の '' |
- | + | ||
- | For data posted to the website from a browser, you can use the $request’s getParsedBody() method. | + | |
- | + | ||
- | ブラウザからウェブサイトに投稿されたデータの場合、$request の '' | + | |
- | + | ||
- | This will return an array of the posted data. | + | |
これにより、投稿されたデータの配列が返されます。 | これにより、投稿されたデータの配列が返されます。 | ||
行 416: | 行 410: | ||
\\ | \\ | ||
- | ==== Media type detection | + | ==== メディアタイプの検出 |
* The middleware reads the Content-Type from the request header to detect the media type. | * The middleware reads the Content-Type from the request header to detect the media type. | ||
行 428: | 行 422: | ||
\\ | \\ | ||
- | ==== Supported media types ==== | + | ==== サポートされているメディアタイプ |
* application/ | * application/ |