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