addResponseHeader method

void addResponseHeader(
  1. Map<String, Object> headers
)

Add headers to HTTP Response

Implementation

void addResponseHeader(Map<String, Object> headers) {
  headers.forEach((key, value) {
    server?.defaultResponseHeaders.add(key, value);
  });
}