getHeadersToSend = (requestHeaders) => {
	const headersToSend = {};
	if (requestHeaders) {
		for (const header of requestHeaders) {
			headersToSend[header.name] = header.value;
		}
	}

	return headersToSend;
}
Gets headers and values to attach to the web request.
@param {Array.<{name: string, value:string}>} requestHeaders the HTTP headers to send
@returns {object} An object specifying name and value of the headers.