FileResponse
class FileResponse extends Object implements IResponse
File download response.
Properties
bool | $resuming |
Methods
__construct($file, $name = NULL, $contentType = NULL, $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 41
__construct($file, $name = NULL, $contentType = NULL, $forceDownload = TRUE)
No description
at line 58
string
getFile()
Returns the path to a downloaded file.
at line 68
string
getName()
Returns the file name.
at line 78
string
getContentType()
Returns the MIME content type of a downloaded file.
at line 88
void
send(IRequest $httpRequest, IResponse $httpResponse)
Sends response to output.