Optional
bodyThe body of the request.
Optional
credentialsCredentials mode for the request.
Optional
headersHeaders to include in the request.
The HTTP method for the request (e.g., 'GET', 'POST').
Optional
onCallback for download progress.
Optional
onCallback for upload progress.
Optional
timeoutOptional timeout for the request in milliseconds.
The URL for the request.
Options for the XHR transport. This interface defines the options for making HTTP requests using XMLHttpRequest. It includes the URL, method, headers, body, timeout, and callbacks for download and upload progress.
XhrTransportOptions
Default
Example