FOF30\Platform\Joomla\Platform::setHeader PHP Method

setHeader() public method

Method to set a response header. If the replace flag is set then all headers with the given name will be replaced by the new one (only if the current platform supports header caching)
public setHeader ( string $name, string $value, boolean $replace = false ) : void
$name string The name of the header to set.
$value string The value of the header to set.
$replace boolean True to replace any headers with the same name.
return void
    public function setHeader($name, $value, $replace = false)
    {
        \JFactory::getApplication()->setHeader($name, $value, $replace);
    }