Skip to content

Instantly share code, notes, and snippets.

View adilj13's full-sized avatar
🏠
Working from home

Adil Aziz adilj13

🏠
Working from home
View GitHub Profile
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());

Keybase proof

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: