📅  最后修改于: 2022-03-11 15:00:51.728000             🧑  作者: Mango
let server = http.createServer()
server.listen(3000, error => {
http.request({
port: 3000,
path: "/endpoint"
}, res => {
// handle the response
})
})