async function main (params) { console.log('params?.__ow_headers?.cookie =', params?.__ow_headers?.cookie) let newValue = params?.__ow_headers?.cookie?.split('=')[1] || 0 return { statusCode:200, headers: { 'Content-Type': 'text/html', 'set-cookie': `mycookie=${parseInt(newValue) + 1}; Secure; HttpOnly; SameSite=Strict` }, body: ` Example

Hello, world!

${JSON.stringify(params, null, 2)}
` } } exports.main = main