setResponseHeader method

void setResponseHeader(
  1. HttpRequest request,
  2. String key,
  3. String value
)

Implementation

void setResponseHeader(HttpRequest request, String key, String value) {
  request.response.headers.add(key, value, preserveHeaderCase: true);
}