String 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()
String get responseType => _blink.BlinkXMLHttpRequest.instance.responseType_Getter_(this);
void responseType=(String value)

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);