applyResponseHeaders method

void applyResponseHeaders(
  1. Map<String, String> headers
)

Captures allowlisted response headers as http.response.header.<name>.

Implementation

void applyResponseHeaders(Map<String, String> headers) {
  _applyHeaders(
    'http.response.header',
    headers,
    HttpInstrumentationSettings.captureResponseHeaders,
  );
}