HTTP_Encoder::sendHeaders PHP Method

sendHeaders() public method

You must call this before headers are sent and it probably cannot be used in conjunction with zlib output buffering / mod_gzip. Errors are not handled purposefully.
See also: getHeaders()
public sendHeaders ( )
    public function sendHeaders()
    {
        foreach ($this->_headers as $name => $val) {
            header($name . ': ' . $val);
        }
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Overrides parent function and removed Content-Length header to avoid
  * some problems if our JavaScript is somehow prepended by 3rd party code.
  *
  * @return void Method does not return.
  */
 public function sendHeaders()
 {
     unset($this->_headers['Content-Length']);
     parent::sendHeaders();
 }
All Usage Examples Of HTTP_Encoder::sendHeaders