class FileResponse 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

Parameters

$file
$name
$contentType
$forceDownload

at line 58
string getFile()

Returns the path to a downloaded file.

Return Value

string

at line 68
string getName()

Returns the file name.

Return Value

string

at line 78
string getContentType()

Returns the MIME content type of a downloaded file.

Return Value

string

at line 88
void send(IRequest $httpRequest, IResponse $httpResponse)

Sends response to output.

Parameters

IRequest $httpRequest
IResponse $httpResponse

Return Value

void

Traits

SmartObject