1 onfetch = function(e) {
3 for (var header of e.request.headers) {
4 var key = header[0], value = header[1];
7 var append_header_error = '';
9 e.request.headers.append('Test-Header', 'TestValue');
11 append_header_error = error.name;
14 e.respondWith(new Response(JSON.stringify({
16 method: e.request.method,
17 referrer: e.request.referrer,
20 credentials: e.request.credentials,
21 redirect: e.request.redirect,
22 append_header_error: append_header_error