extends |
Response |
|---|
HTTP response when a download is requested.
| Methods | ||
|---|---|---|
public
|
__construct(string $filename, bool $setMime)
|
# |
public
|
setBinary(string $binary)
|
# |
public
|
setFilePath(string $filepath)
|
# |
public
|
setFileName(string $filename): $this
|
# |
public
|
getContentLength(): int
|
# |
public
|
setStatusCode(int $code, string $reason = '')
|
# |
public
|
setContentType(string $mime, string $charset = 'UTF-8'): ResponseInterface
|
# |
public
|
noCache(): self
|
# |
public
|
setCache(array $options = [])
|
# |
public
|
send(): $this
|
# |
public
|
buildHeaders()
|
# |
public
|
sendBody(): DownloadResponse
|
# |
| Methods inherited from CodeIgniter\HTTP\Response |
|---|
pretend(), getStatusCode(), getReason(), getReasonPhrase() |
| Methods inherited from CodeIgniter\HTTP\Message |
|---|
getBody(), getHeaders(), getHeader(), hasHeader(), getHeaderLine(), getProtocolVersion() |
| Properties | |||
|---|---|---|---|
protected
|
string
|
$reason = 'OK'
|
# |
protected
|
int
|
$statusCode = 200
|
# |
| Properties inherited from CodeIgniter\HTTP\Response |
|---|
$statusCodes, |
| Properties inherited from CodeIgniter\HTTP\Message |
|---|
$protocolVersion, $validProtocolVersions, $body |
| Properties used from CodeIgniter\HTTP\MessageTrait |
|---|
$headers, $headerMap |
| Properties used from CodeIgniter\HTTP\ResponseTrait |
|---|
$CSPEnabled, $CSP, $cookieStore, $cookiePrefix, $cookieDomain, $cookiePath, $cookieSecure, $cookieHTTPOnly, $cookieSameSite, $cookies, $bodyFormat, |