set method

void set(
  1. String key,
  2. List<String> value
)

Sets the values of the header with the given name. Overrides existing values if the header already exists.

Implementation

void set(String key, List<String> value) {
  _headers[key] = value;
}