mirror of
https://git.proxmox.com/git/package-rebuilds
synced 2025-08-22 10:06:47 +00:00
14 lines
280 B
JavaScript
14 lines
280 B
JavaScript
'use strict'
|
|
|
|
const { fetch } = require('../')
|
|
|
|
async function main () {
|
|
const res = await fetch('http://localhost:3001/')
|
|
|
|
const data = await res.text()
|
|
console.log('response received', res.status)
|
|
console.log('headers', res.headers)
|
|
console.log('data', data)
|
|
}
|
|
main()
|