headerNames method
Header names
Returns an iterator to the names of the HTTP headers.
This includes all the headers set using headerAdd or headerAddDate, but will not necessarily be all the HTTP headers in the response. For example, "cookies" never appears and "content-type" usually does not appear.
Implementation
Iterable<String> headerNames() => _headers.keys;