Hacker News new | ask | show | jobs
by lucacasonato 1521 days ago
Actually `context.rewrite` returns a `Promise<Response>`. The `async` isn't necessary here, but it also doesn't particularly hurt. You can return a `Promise` from an async function no problem.