public function setHeader(string $header, $value)
    {
        if (!is_scalar($value))
            throw new \InvalidArgumentException("Value should be a scalar");

        $header = static::normalizeHeader($header);
        $this->headers[$header] = $value;
        return $this;
    }