FileResponse
final class FileResponse implements IResponse
File download response.
Properties
bool | $resuming |
Methods
__construct(string $file, string $name = null, string $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 38
__construct(string $file, string $name = null, string $contentType = null, bool $forceDownload = true)
No description
at line 58
string
getFile()
Returns the path to a downloaded file.
at line 67
string
getName()
Returns the file name.
at line 76
string
getContentType()
Returns the MIME content type of a downloaded file.
Traits
Strict class for better experience.