このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
|
psr:psr7 [2020/06/16 21:47] y2sunlight [1.6 アップロードファイル] |
psr:psr7 [2020/09/01 11:53] (現在) tanaka [PSR-7: HTTP message interfaces] |
||
|---|---|---|---|
| 行 3: | 行 3: | ||
| --- // | --- // | ||
| - | 本章は、若干の補足を加筆してはいるものの単に[[https:// | + | 本章は、若干の補足を加筆してはいるものの単に[[https:// |
| + | |||
| + | 関連記事 | ||
| - | ==== 目次 ==== | ||
| * [[psr: | * [[psr: | ||
| * [[psr: | * [[psr: | ||
| 行 14: | 行 15: | ||
| * PSR-7: HTTP Message Interface - HTTPメッセージインターフェイス | * PSR-7: HTTP Message Interface - HTTPメッセージインターフェイス | ||
| * [[psr: | * [[psr: | ||
| + | * [[psr: | ||
| + | * [[psr: | ||
| + | * [[psr: | ||
| + | * [[psr: | ||
| + | * [[psr: | ||
| + | * [[psr: | ||
| + | * [[psr: | ||
| + | * [[psr: | ||
| ----- | ----- | ||
| 行 481: | 行 490: | ||
| // " | // " | ||
| </ | </ | ||
| - | |||
| - | This proposal also recognizes that implementations may operate in non-SAPI environments. As such, UploadedFileInterface provides methods for ensuring operations will work regardless of environment. In particular: | ||
| この提案は、実装が非SAPI環境で動作する可能性があることも認識しています。従って、'' | この提案は、実装が非SAPI環境で動作する可能性があることも認識しています。従って、'' | ||
| 行 488: | 行 495: | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| 例として: | 例として: | ||
| 行 509: | 行 516: | ||
| // | // | ||
| // ファイルを Amazon S3 にストリーミングします。 | // ファイルを Amazon S3 にストリーミングします。 | ||
| - | // $s3wrapper が S3 に書き込むPHPストリームであり、Psr7StreamWrapper が StreamInterface を | + | // $s3wrapper が S3 に書き込むPHPストリームであり、 |
| - | // PHP StreamWrapper として装飾するクラスであると想定します。 | + | // Psr7StreamWrapper が StreamInterface を |
| + | // PHP StreamWrapper として装飾するクラスであると仮定します。 | ||
| $stream = new Psr7StreamWrapper($file1-> | $stream = new Psr7StreamWrapper($file1-> | ||