Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Adil Aziz adilj13

🏠
Working from home
View GitHub Profile
View cf-workers-mail-send.js
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());
View keybase.md

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: