replaceHeaders property

bool replaceHeaders
final

res.header(k, v) replaces a value of the header that is already on the response (for example one set by a middleware). Off: it adds a second value. res.header(k, v, replace: ...) wins over this flag.

Implementation

// NEXT MAJOR: make this the default, then remove the flag.
final bool replaceHeaders;