removeAll method

  1. @override
void removeAll(
  1. String name
)
override

Removes all values for the specified header name.

Some headers have system supplied values which cannot be removed. All other values for name are removed. If there are no remaining values for name, the header is no longer considered present.

Implementation

@override
void removeAll(String name) {
  final lcName = name.toLowerCase();

  _data.remove(lcName);
  _originalHeaderNames.remove(lcName);
}