src/Protocol/Http/Request.php
public function withHeaders(array $headers): Request
    {
        $cloned = clone $this;

        foreach ($headers as $name => $value) {
            $cloned = $cloned->withHeader($name, $value);
        }

        return $cloned;
    }
public function withHeaders(array $headers): Request
    {
        $cloned = clone $this;

        foreach ($headers as $name => $value) {
            $cloned = $cloned->withHeader($name, $value);
        }

        return $cloned;
    }
public function withHeaders ( array $ headers ) : Request { $ cloned = clone $ this ; foreach ( $ headers as $ name => $ value ) { $ cloned = $ cloned -> withHeader ( $ name , $ value ) ; } return $ cloned ; }
Add multiple headers

@param array $headers

@return Request
Add multiple headers