requestHeaders property

List<HttpHeadersItems>? get requestHeaders

Only used as a response to the onBeforeSendHeaders event. If set, the request is made with these request headers instead.

Implementation

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

Implementation

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