private static _getResponseType()

in src/SimpleWebRequest.ts [651:665]


    private static _getResponseType(acceptType: string): XMLHttpRequestResponseType {
        if (acceptType === 'blob') {
            return 'arraybuffer';
        }

        if (acceptType === 'text/xml' || acceptType === 'application/xml') {
            return 'document';
        }

        if (acceptType === 'text/plain') {
            return 'text';
        }

        return 'json';
    }