public function setHeaders($headers) 
    {

       if(!$this->_parserObj) {
           $this->initParser($this->getRespondType());

        }

        /** @var array  _headers */
        $this->_headers = $this->getParser()->getHeaders();
        $this->_headers = array_merge($this->_headers,$headers);
    }
public function setHeaders($headers) 
    {

       if(!$this->_parserObj) {
           $this->initParser($this->getRespondType());

        }

        /** @var array  _headers */
        $this->_headers = $this->getParser()->getHeaders();
        $this->_headers = array_merge($this->_headers,$headers);
    }
public function setHeaders ( $ headers ) { if ( ! $ this -> _parserObj ) { $ this -> initParser ( $ this -> getRespondType ( ) ) ; } /** @var array  _headers */ $ this -> _headers = $ this -> getParser ( ) -> getHeaders ( ) ; $ this -> _headers = array_merge ( $ this -> _headers , $ headers ) ; }
set the headers array base on which paser we are using
@param array $headers extra headers
set the headers array base on which paser we are using