• Create and open an XMLHttpRequest object

    Parameters

    • method: string

      The request method

    • urlString: string

      The url

    • OptionalwithCredentials: boolean

      Option flag indicating that credentials should be sent

    • disabled: boolean = false

      Optional flag indicating that the XHR object should be marked as disabled and not tracked (default is false)

    • isSync: boolean = false

      Optional flag indicating if the instance should be a synchronous request (defaults to false)

    • Optionaltimeout: number

      Optional value identifying the timeout value that should be assigned to the XHR request

    Returns XMLHttpRequest

    A new opened XHR request