Last active
February 22, 2019 03:27
-
-
Save jamesbibby/74b0ee01a828649e7f5a5477ee9b3fec to your computer and use it in GitHub Desktop.
Hello World Cloudflare Worker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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