FileResponse
final class FileResponse implements Response
File download response.
Properties
$resuming |
Methods
__construct(string $file, string|null $name = null, string|null $contentType = null, bool $forceDownload = true)
No description
string
getFile()
Returns the path to a downloaded file.
string
getName()
Returns the file name.
string
getContentType()
Returns the MIME content type of a downloaded file.
Details
at line 33
__construct(string $file, string|null $name = null, string|null $contentType = null, bool $forceDownload = true)
No description
at line 53
string
getFile()
Returns the path to a downloaded file.
at line 62
string
getName()
Returns the file name.
at line 71
string
getContentType()
Returns the MIME content type of a downloaded file.
Traits
Strict class for better experience.