src/targets/javascript/fetch/fixtures/headers.js
const url = 'http://mockbin.com/har';
const options = {
method: 'GET',
headers: {
accept: 'application/json',
'x-foo': 'Bar',
'quoted-value': '"quoted" \'string\''
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}