Icicle\Http\Message\Message::withHeader PHP Method

withHeader() public method

Returns a new instance with the given header. $value may be a string or an array of strings.
public withHeader ( string $name, string | string[] $value ) : Icicle\Http\Message\Message
$name string
$value string | string[]
return Icicle\Http\Message\Message
    public function withHeader(string $name, $value) : Message;