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