responseHeaders property

List<HttpHeadersItems>? get responseHeaders

Only used as a response to the onHeadersReceived event. If set, the server is assumed to have responded with these response headers instead. Only return responseHeaders if you really want to modify the headers in order to limit the number of conflicts (only one extension may modify responseHeaders for each request).

Implementation

List<HttpHeadersItems>? get responseHeaders =>
    _wrapped.responseHeaders?.toDart
        .cast<$js.HttpHeadersItems>()
        .map((e) => HttpHeadersItems.fromJS(e))
        .toList();
set responseHeaders (List<HttpHeadersItems>? v)

Implementation

set responseHeaders(List<HttpHeadersItems>? v) {
  _wrapped.responseHeaders = v?.toJSArray((e) => e.toJS);
}