set method

  1. @override
void set(
  1. String name,
  2. String value
)

Sets a new value for an existing header inside a Headers object, or adds the header if it does not already exist.

MDN Reference

Implementation

@override
void set(String name, String value) => _headers.set(name, value);