このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン 両方とも次のリビジョン | ||
psr:psr15 [2020/07/28 15:10] y2sunlight [1.2 ミドルウェア] |
psr:psr15 [2020/07/28 15:14] y2sunlight [1.4 例外のハンドリング] |
||
---|---|---|---|
行 84: | 行 84: | ||
==== 1.3 レスポンスの生成 ==== | ==== 1.3 レスポンスの生成 ==== | ||
- | It is RECOMMENDED that any middleware or request handler that generates a response will either compose a prototype of a PSR-7 ResponseInterface or a factory capable of generating a ResponseInterface instance in order to prevent dependence on a specific HTTP message implementation. | + | 応答を生成するミドルウェアまたはリクエストハンドラーは、PSR-7の '' |
- | + | ||
- | 応答を生成するミドルウェアまたはリクエストハンドラーは、PSR-7の '' | + | |
\\ | \\ | ||
行 92: | 行 90: | ||
==== 1.4 例外のハンドリング ==== | ==== 1.4 例外のハンドリング ==== | ||
- | It is RECOMMENDED that any application using middleware includes a component that catches exceptions and converts them into responses. This middleware SHOULD be the first component executed and wrap all further processing to ensure that a response is always generated. | + | ミドルウェアを使用するアプリケーションは、例外をキャッチしてそれらをレスポンスに変換するコンポーネントを含むことが推奨されます( '' |
- | + | ||
- | ミドルウェアを使用するアプリケーションは、例外をキャッチしてそれらをレスポンスに変換するコンポーネントを含むことが推奨されます( '' | + | |
\\ | \\ |