Make an XHR request. This function is a wrapper around XMLHttpRequest to provide a consistent API for making requests. It supports cancelable promises, progress events, and custom headers.
The type of the response data.
The host to use for the request.
The options for the request.
A promise that resolves with the response data or rejects with an error.
Make an XHR request. This function is a wrapper around XMLHttpRequest to provide a consistent API for making requests. It supports cancelable promises, progress events, and custom headers.