コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
 /**
  * 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;
 }
コード例 #3
0
 /**
  * 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;
 }