public function addHeaders(array $headers)
    {
        foreach ($headers as $name => $value) {
            if (is_numeric($name)) {
                $this->parseHeaderLine($value);
            } else {
                $this->addHeader($name, $value);
            }
        }
        return $this;
    }
public function addHeaders(array $headers)
    {
        foreach ($headers as $name => $value) {
            if (is_numeric($name)) {
                $this->parseHeaderLine($value);
            } else {
                $this->addHeader($name, $value);
            }
        }
        return $this;
    }
public function addHeaders ( array $ headers ) { foreach ( $ headers as $ name => $ value ) { if ( is_numeric ( $ name ) ) { $ this -> parseHeaderLine ( $ value ) ; } else { $ this -> addHeader ( $ name , $ value ) ; } } return $ this ; }
Add multiple headers at once
@param array $headers
@return AbstractMessage
Add multiple headers at once