responseType property

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

Implementation

String get responseType native;
void responseType= (String value)

Implementation

set responseType(String value) native;