src/http/MessageTrait.php
public function setHeaders($headers)
    {
        $headerCollection = $this->getHeaderCollection();
        $headerCollection->removeAll();
        $headerCollection->fromArray($headers);
    }
public function setHeaders($headers)
    {
        $headerCollection = $this->getHeaderCollection();
        $headerCollection->removeAll();
        $headerCollection->fromArray($headers);
    }
public function setHeaders ( $ headers ) { $ headerCollection = $ this -> getHeaderCollection ( ) ; $ headerCollection -> removeAll ( ) ; $ headerCollection -> fromArray ( $ headers ) ; }
Sets up message's headers at batch, removing any previously existing ones.
@param string[][] $headers an associative array of the message's headers.
Sets up message s headers at batch removing any previously existing ones .