Documentation JavaScript Examples - Hello World Return a Hello World string. A clear example of respondWith use. async function handleRequest(request) { return new Response("Edge Functions JavaScript - General Availability") } addEventListener("fetch", event => { return event.respondWith(handleRequest(event.request)) }) Contributors
Documentation JavaScript Examples - Hello World Return a Hello World string. A clear example of respondWith use. async function handleRequest(request) { return new Response("Edge Functions JavaScript - General Availability") } addEventListener("fetch", event => { return event.respondWith(handleRequest(event.request)) })