The HTTP method (for example, "GET" or "POST").
Optionalurl: stringThe request URL. Defaults to the current page URL.
Optionalpost: anyOptional request body.
Optionalcallback: (Completion callback invoked when the request settles.
Optionalheaders: Record<string, string | undefined>Request headers to apply before sending.
Optionaltimeout: number | Promise<any>Timeout in milliseconds or a cancellable promise.
OptionalwithCredentials: booleanWhether to send credentials with the request.
OptionalresponseType: XMLHttpRequestResponseTypeThe expected XHR response type.
OptionaleventHandlers: Record<string, EventListenerOrEventListenerObject>Event listeners attached to the XMLHttpRequest instance.
OptionaluploadEventHandlers: Record<string, EventListenerOrEventListenerObject>Event listeners attached to XMLHttpRequest.upload.
Sends a low-level
XMLHttpRequestusing AngularTS-compatible callback and timeout semantics.