public function set(string $name, $value, bool $replace = true)
    {
        $key = strtolower($name);
        if ($replace || !array_key_exists($key, $this->headers)) {
            $this->headers[$key] = new Header($name, $value);
        } else {
            $this->headers[$key]->addValue($value);
        }
    }