SevenShores\Hubspot\Http\Response::withHeader PHP Method

withHeader() public method

While header names are case-insensitive, the casing of the header will be preserved by this function, and returned from getHeaders(). This method MUST be implemented in such a way as to retain the immutability of the message, and MUST return an instance that has the new and/or updated header and value.
public withHeader ( string $name, string | string[] $value ) : self
$name string Case-insensitive header field name.
$value string | string[] Header value(s).
return self
    function withHeader($name, $value)
    {
        return $this->response->withHeader($name, $value);
    }