set method
Sets a header. The header named name will have all its values cleared before the value value is added as its value.
Implementation
void set(String name, String value) {
name = name.toLowerCase();
List<String> values = <String>[];
headers[name] = values;
values.add(value);
}