public function send() { $this->addHeader('Content-type: application/json; charset=utf-8'); parent::send(); }
public function __construct($url, $content = null, $headers = null, $statusCode = 301) { parent::__construct($content, $headers, $statusCode); $this->addHeader('HTTP/1.1 301 Moved Permanently'); $this->addHeader('Location: ' . $url); }
public function __construct($content = null, $headers = null, $statusCode = 200) { $this->setFavicon(ipFileUrl('favicon.ico')); $this->setCharset(ipConfig()->get('charset')); parent::__construct($content, $headers, $statusCode); }
public function send() { $this->addHeader('Content-type: text/xml;'); parent::send(); }