public function set(string $name, string $value): void
    {
        $key = strtolower($name);
        $this->headers[$key] = [$name, $value];
    }
public function set(string $name, string $value): void
    {
        $key = strtolower($name);
        $this->headers[$key] = [$name, $value];
    }
public function set ( string $ name , string $ value ) : void { $ key = strtolower ( $ name ) ; $ this -> headers [ $ key ] = [ $ name , $ value ] ; }
Sets a header value by header name.

@since 1.0.0

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