Ejemplo n.º 1
0
 public function send()
 {
     $this->addHeader('Content-type: application/json; charset=utf-8');
     parent::send();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 public function send()
 {
     $this->addHeader('Content-type: text/xml;');
     parent::send();
 }