entries method

Iterable<(String, String)> entries()

Returns an iterator allowing to go through all key/value pairs contained in this object.

MDN Reference

Implementation

Iterable<(String, String)> entries() sync* {
  for (final (name, value) in _storage) {
    // https://fetch.spec.whatwg.org/#ref-for-forbidden-response-header-name%E2%91%A0
    if (name.equals('set-cookie')) continue;

    yield (name, value);
  }
}