untitled notebook

node v16.18.0
version: 1.0.0
endpointsharetweet
const { fetch, FormData } = require('undici') var form = new FormData(); form.append('my_field', 'my value'); form.append('my_buffer', Buffer.from('qweqwe')); const { headers, } = await fetch('https://webhook.site/52b8e471-f5cd-4d71-add3-eefae37d24be', { method: 'POST', body: form }) console.log('headers', headers)
Loading…

no comments

    sign in to comment