public function addHeader(string $name, $value)
    {
        $lName = strtolower($name);
        if (isset($this->headers[$lName])) {
            $this->headers[$lName][1] = array_merge(
                $this->headers[$lName][1],
                (array) $value
            );
        } else {
            $this->headers[$lName] = [
                $name,
                (array) $value,
            ];
        }
    }
public function addHeader(string $name, $value)
    {
        $lName = strtolower($name);
        if (isset($this->headers[$lName])) {
            $this->headers[$lName][1] = array_merge(
                $this->headers[$lName][1],
                (array) $value
            );
        } else {
            $this->headers[$lName] = [
                $name,
                (array) $value,
            ];
        }
    }
public function addHeader ( string $ name , $ value ) { $ lName = strtolower ( $ name ) ; if ( isset ( $ this -> headers [ $ lName ] ) ) { $ this -> headers [ $ lName ] [ 1 ] = array_merge ( $ this -> headers [ $ lName ] [ 1 ] , ( array ) $ value ) ; } else { $ this -> headers [ $ lName ] = [ $ name , ( array ) $ value , ] ; } }
Adds a HTTP header.

This method will not overwrite any existing HTTP header, but instead add
another value. Individual values can be retrieved with
getHeadersAsArray.

@param string|string[] $value
Adds a HTTP header .