public static create ( SplFileInfo | string $file = null, integer $status = 200, array $headers = [], boolean $public = true, null | string $contentDisposition = null, boolean $autoEtag = false, boolean $autoLastModified = true ) : |
||
$file | SplFileInfo | string | The file to stream |
$status | integer | The response status code |
$headers | array | An array of response headers |
$public | boolean | Files are public by default |
$contentDisposition | null | string | The type of Content-Disposition to set automatically with the filename |
$autoEtag | boolean | Whether the ETag header should be automatically set |
$autoLastModified | boolean | Whether the Last-Modified header should be automatically set |
리턴 | The created response |