Skip to content

Instantly share code, notes, and snippets.

@jamesbibby
Last active February 22, 2019 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesbibby/74b0ee01a828649e7f5a5477ee9b3fec to your computer and use it in GitHub Desktop.
Save jamesbibby/74b0ee01a828649e7f5a5477ee9b3fec to your computer and use it in GitHub Desktop.
Hello World Cloudflare Worker
// listening to the fetch event is how to intercept requests in a worker
addEventListener('fetch', event => {
event.respondWith(new Response('hello world'))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment