class XHRResult a for converting XMLHtttpRequest response types