addResponseHeader method
Adds default headers to the server's responses, as
HttpHeadersValues.addValues does: each value of a list, skipping a
null. A header that a handler sets replaces one of the same name.
A header that cannot be sent throws an ArgumentError, and none of
headers is added.
Implementation
void addResponseHeader(Map<String, Object?> headers) {
checkHeaders(headers);
server?.defaultResponseHeaders.addValues(headers);
}