Get feedback for network transfer?

I’ve encountered an issue where sometimes the transfer fails and so I’m wondering is there a way to get progress on a network transfer? I’m posting a form and I’d like to show a progress bar until it completes.

Here’s what I’m using currently:

	var results = await fetch(url, {
		method: "POST",
		headers:{
			'Content-Type': 'application/json',
			'accept': 'application/json',
			'Authorization': 'Bearer '+ token
		},
		body: JSON.stringify({
			title: "test"
			}
		})
	})

It looks like I might be able to use XHR. Although, there is something in Chrome.

How do these things track for UXP?