ResponseInterface.php
system/HTTP/ResponseInterface.php
25 fn
getStatusCode
()
setStatusCode
(int $code, string $reason = '')
getReasonPhrase
()
setDate
(DateTime $date)
setLastModified
($date)
setLink
(PagerInterface $pager)
setContentType
(string $mime, string $charset = 'UTF-8')
setJSON
($body, bool $unencoded = false)
getJSON
()
setXML
($body)
getXML
()
noCache
()
setCache
(array $options = [])
send
()
sendHeaders
()
sendBody
()
setCookie
($name, $value = '', $expire = 0, $domain = '', $path = '/', $prefix = '', $secure = false, $httponly = false, $samesite = null, )
hasCookie
(string $name, ?string $value = null, string $prefix = '')
getCookie
(?string $name = null, string $prefix = '')
deleteCookie
(string $name = '', string $domain = '', string $path = '/', string $prefix = '')
getCookies
()
getCookieStore
()
redirect
(string $uri, string $method = 'auto', ?int $code = null)
download
(string $filename = '', $data = '', bool $setMime = false)
getCSP
()