FastEdge Javascript SDK
Basic Usage
The Javascript code you write will look and feel very much like the Service Workers API .
All incoming HTTP requests will start an instance of your FastEdge application and invoke a fetch event, which can be bound using the addEventListener function:
The key thing to note is that the addEventListener callback has to synchronously call event.respondWith() with another callback function.
This callback is allowed to be asynchronous, and is usually where you would carry out any custom
code, it also has to return a Response
object.