set abstract method

void set(
  1. String name,
  2. Object value,
  3. {@Since("2.8") bool preserveHeaderCase = false}
)

Sets the header name to value.

Removes all existing values for the header named name and then adds value to it.

Implementation

void set(String name, Object value,
    {@Since("2.8") bool preserveHeaderCase = false});