protected function setHeaders(array $headers)
    {
        foreach ($headers as $header) {

            if (isset($header['name']) && isset($header['value'])) {
                $this->headers[$header['name']] = $header['value'];
            }
        }

        return $this;
    }
protected function setHeaders(array $headers)
    {
        foreach ($headers as $header) {

            if (isset($header['name']) && isset($header['value'])) {
                $this->headers[$header['name']] = $header['value'];
            }
        }

        return $this;
    }
protected function setHeaders ( array $ headers ) { foreach ( $ headers as $ header ) { if ( isset ( $ header [ 'name' ] ) && isset ( $ header [ 'value' ] ) ) { $ this -> headers [ $ header [ 'name' ] ] = $ header [ 'value' ] ; } } return $ this ; }
Set headers array

@access protected
@param  array                           $headers
@return \JonnyW\PhantomJs\Http\Response
Set headers array