headers property
List<HeaderNameValuePair> ?
get
headers
Extra HTTP headers to send with the request if the URL uses the HTTPs
protocol. Each header is represented as a dictionary containing the keys
name
and either value
or
binaryValue
, restricted to those allowed by XMLHttpRequest.
Implementation
List<HeaderNameValuePair>? get headers => _wrapped.headers?.toDart
.cast<$js.HeaderNameValuePair>()
.map((e) => HeaderNameValuePair.fromJS(e))
.toList();
set
headers
(List<HeaderNameValuePair> ? v)
Implementation
set headers(List<HeaderNameValuePair>? v) {
_wrapped.headers = v?.toJSArray((e) => e.toJS);
}