headerExists method
Whether a header has been set or not.
Returns true if one or more headers with the name
has been set.
The name is case-insensitive. The name is considered the same, whether it is represented using uppercase or lowercase letters.
Implementation
bool headerExists(String name) =>
_headers.containsKey(_headerCanonicalName(name));