public function addHeaders(array $headers)
    {
        $headerCollection = $this->getHeaders();
        foreach ($headers as $name => $value) {
            $headerCollection->add($name, $value);
        }
        return $this;
    }
public function addHeaders(array $headers)
    {
        $headerCollection = $this->getHeaders();
        foreach ($headers as $name => $value) {
            $headerCollection->add($name, $value);
        }
        return $this;
    }
public function addHeaders ( array $ headers ) { $ headerCollection = $ this -> getHeaders ( ) ; foreach ( $ headers as $ name => $ value ) { $ headerCollection -> add ( $ name , $ value ) ; } return $ this ; }
Adds more headers to the already defined ones.
@param array $headers additional headers in format: [headerName => headerValue]
@return $this self reference.
Adds more headers to the already defined ones .