FileResponse
class FileResponse extends Object implements IResponse
File download response.
Properties
bool | $resuming | ||
string read-only | $file | ||
string read-only | $name | ||
string read-only | $contentType |
Methods
__construct($file, $name = NULL, $contentType = NULL)
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 42
__construct($file, $name = NULL, $contentType = NULL)
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.