Beispiel #1
0
 public function send()
 {
     $this->addHeader('Content-type: application/json; charset=utf-8');
     parent::send();
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 public function __construct($content = null, $headers = null, $statusCode = 200)
 {
     $this->setFavicon(ipFileUrl('favicon.ico'));
     $this->setCharset(ipConfig()->get('charset'));
     parent::__construct($content, $headers, $statusCode);
 }
Beispiel #4
0
 public function send()
 {
     $this->addHeader('Content-type: text/xml;');
     parent::send();
 }