Handlers
Handlers are methods on Workers that can receive and process external inputs, and can be invoked from outside your Worker. For example, the fetch()
handler receives an HTTP request, and can return a response:
The following handlers are available within Workers:
When you write Workers in Python, handlers are prefixed with on_
. For example, on_fetch
or on_scheduled
.