addHeaders method

void addHeaders(
  1. Message response
)

Implementation

void addHeaders(Message response) {
  if (response is Response) {
    response.additionalHeaders ??= {};
    response.additionalHeaders!.addAll(cacheControl.headers);
  }
}