addMessageHeaders method

void addMessageHeaders(
  1. MessageHeaders? newHeaders
)

Concatenate message headers

Implementation

void addMessageHeaders(MessageHeaders? newHeaders) {
  if (newHeaders != null && !newHeaders.isEmpty) {
    for (var name in newHeaders.names) {
      setHeaderValue(name, newHeaders.getHeaderValue(name)!);
    }
  }
}