function _extractFetchHeaders(headers) {
  const result = {};

  headers.forEach((value, key) => {
    result[key] = value;
  });

  return result;
}
Extracts the response headers as an object from the given XHR object

@param xhr The XHR object to extract the response headers from
@returns The response headers as an object