I hereby claim:
- I am adilj13 on github.
- I am adilj13 (https://keybase.io/adilj13) on keybase.
- I have a public key ASCxX6Mynzy5EFAsrfBMH0fl0Cb4gNstTPYru45E_gK_aAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
addEventListener("fetch", event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
async function readRequestBody(request) { | |
const { headers } = request; | |
const contentType = headers.get('content-type') || ''; | |
if (contentType.includes('application/json')) { | |
return JSON.stringify(await request.json()); |