FileResponse
final class FileResponse implements Response
File download response.
Properties
| $resuming |
Methods
__construct(string $file, string|null $name = null, string $contentType = 'application/octet-stream', 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.
void
send(IRequest $httpRequest, IResponse $httpResponse)
Sends response to output.
Details
at line 23
__construct(string $file, string|null $name = null, string $contentType = 'application/octet-stream', bool $forceDownload = true)
No description
at line 40
string
getFile()
Returns the path to a downloaded file.
at line 49
string
getName()
Returns the file name.
at line 58
string
getContentType()
Returns the MIME content type of a downloaded file.
at line 67
void
send(IRequest $httpRequest, IResponse $httpResponse)
Sends response to output.