responseType property
String responseTypeString telling the server the desired response format.
Default is String
. Other options are one of 'arraybuffer', 'blob', 'document', 'json', 'text'. Some newer browsers will throw NS_ERROR_DOM_INVALID_ACCESS_ERR if responseType
is set while performing a synchronous request.
See also: MDN responseType
Source
@DomName('XMLHttpRequest.responseType') @DocsEditable() String get responseType => _blink.BlinkXMLHttpRequest.instance.responseType_Getter_(this);void responseType=(
String telling the server the desired response format.
Default is String
. Other options are one of 'arraybuffer', 'blob', 'document', 'json', 'text'. Some newer browsers will throw NS_ERROR_DOM_INVALID_ACCESS_ERR if responseType
is set while performing a synchronous request.
See also: MDN responseType
Source
@DomName('XMLHttpRequest.responseType') @DocsEditable() set responseType(String value) => _blink.BlinkXMLHttpRequest.instance.responseType_Setter_(this, value);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/HttpRequest/responseType.html