Incoming HTTP requests to a Worker are passed to the fetch() handler as a request object. To respond to the request with a response, return a Response β¦
If you want it to be perfectly accurate you should not do it in a waitUntil because waitUntil can fail or stop running and you wouldve responded that it suceeded
i want to add some header key when making request to it, should i check it after against a env.TOKEN or there's another way to interact with tokens from inside a worker?
Howdy all! I'm trying to open the itty-durable door, and there's a brick wall right behind it! I threw the sample code from https://github.com/kwhitley/itty-durable in a new worker, and added migrations + bindings to toml. Result - brick wall:
"name": "TypeError", "message": "Incorrect type for Promise: the Promise did not resolve to 'Response'.",
huys, i'm a bit confused about how to setup the CF Actions for workers. In the docs it just says .yml file .. i added in the project root. noting happens in github interface.