Hazaar\Controller
Response
Abstract
Summary
MethodsPropertiesConstants
No constants
Properties
$compress
$compress
$content
$content
$content_type
$content_type
$controller
$controller
Static
$encryption_key
$encryption_key
$headers
$headers
$headers_set
$headers_set
$status_code
$status_code
$tidy
$tidy
Methods
__construct()
__construct($type = '"text/html"', $status = 501)
__sleep()
__sleep()
__writeOutput()
__writeOutput() : null
Write the response to the output buffer
addContent()
addContent($content)
clearHeaders()
clearHeaders()
enableTidy()
enableTidy($state = true)
getContent()
getContent()
getContentLength()
getContentLength()
getContentType()
getContentType()
Quick method to get the content type
getHeader()
getHeader($key)
getStatus()
getStatus()
getStatusMessage()
getStatusMessage()
hasContent()
hasContent()
ignoreHeaders()
ignoreHeaders()
modified()
modified()
removeHeader()
removeHeader($key)
setCompression()
setCompression($toggle)
setContent()
setContent($content)
setContentType()
setContentType($type = null)
Quick method to set the content type
setController()
setController($controller)
setHeader()
setHeader($key, $value, $overwrite = true)
Add Header Directive
setHeaders()
setHeaders($content_length = null)
setStatus()
setStatus($status)