OptionalbodyThe body of the request.
OptionalcredentialsCredentials mode for the request.
OptionalheadersHeaders to include in the request.
The HTTP method for the request (e.g., 'GET', 'POST').
OptionalonCallback for download progress.
OptionalonCallback for upload progress.
OptionaltimeoutOptional 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