/** * Return default headers for sending store data via http * @return SimpleHeaders */ public function getHttpHeaders() { if ($this->headers === null) { $this->headers = new SimpleHeaders(); $this->headers->setContentType('application/json', 'utf-8'); //$this->headers->setContentDispositionType(SimpleHeaders::DIPOSITION_ATTACHEMENT); } return $this->headers; }
/** * Return default headers for sending store data via http * @return SimpleHeaders */ public function getHttpHeaders() { if ($this->headers === null) { $this->headers = new SimpleHeaders(); $this->headers->setContentType('application/xml', $this->options['encoding']); $this->headers->setContentDispositionType(SimpleHeaders::DIPOSITION_ATTACHEMENT); } return $this->headers; }
/** * Return default headers for sending store data via http * @return SimpleHeaders */ public function getHttpHeaders() { if ($this->headers === null) { $this->headers = new SimpleHeaders(); $this->headers->setContentType('text/csv', $this->options['charset']); //$this->headers->setContentDispositionType(SimpleHeaders::DIPOSITION_ATTACHEMENT); } return $this->headers; }