DownloadResponse extends HttpResponse
Response with headers that induce browser downloading as file should be in module main
Table of Contents
Methods
- __construct() : mixed
- Constructor
Methods
__construct()
Constructor
public
__construct(string $content[, string $name = 'download_file' ][, string $contentType = 'application/octet-stream' ]) : mixed
Parameters
- $content : string
-
Content to download
- $name : string = 'download_file'
-
Name of downloaded file (should be compliant with standards)
- $contentType : string = 'application/octet-stream'
-
MIME content type for browser