public function add(string $name, string $value): void
    {
        $key = strtolower($name);
        if (!isset($this->headers[$key])) {
            $this->headers[$key] = [$name, $value];

            return;
        }

        $this->headers[$key] = [$name, $this->headers[$key][1] . ', ' . $value];
    }
public function add(string $name, string $value): void
    {
        $key = strtolower($name);
        if (!isset($this->headers[$key])) {
            $this->headers[$key] = [$name, $value];

            return;
        }

        $this->headers[$key] = [$name, $this->headers[$key][1] . ', ' . $value];
    }
public function add ( string $ name , string $ value ) : void { $ key = strtolower ( $ name ) ; if ( ! isset ( $ this -> headers [ $ key ] ) ) { $ this -> headers [ $ key ] = [ $ name , $ value ] ; return ; } $ this -> headers [ $ key ] = [ $ name , $ this -> headers [ $ key ] [ 1 ] . ', ' . $ value ] ; }
Adds a header value by header name.

@since 1.0.0

@param string $name  The header name.
@param string $value The header value.
Adds a header value by header name .