src/Message.php
private function setHeaders(array $headers)
	{
		$this->headerNames = [];
		$this->headers = [];

		foreach ($headers as $name => $value) {
			$this->setHeader($name, $value);
		}

		return $this;
	}
private function setHeaders(array $headers)
	{
		$this->headerNames = [];
		$this->headers = [];

		foreach ($headers as $name => $value) {
			$this->setHeader($name, $value);
		}

		return $this;
	}
Set the headers.

@param array $headers
@return $this