feat: add support for middleware (#74)

This commit is contained in:
Luca Casonato
2021-11-01 13:35:41 +01:00
committed by GitHub
parent 6ecd7a680b
commit aa1e1bcdb4
7 changed files with 57 additions and 15 deletions
+5
View File
@@ -0,0 +1,5 @@
export async function handler(_req: Request, handle: () => Promise<Response>) {
const resp = await handle();
resp.headers.set("server", "fresh test server");
return resp;
}