VD
Size: a a a
VD
ПК
ПК
ПК
ПК
ПК
BT
👨C
ПК
ПК
👨C
http = require("https");
const options = {
"method": "GET",
"hostname": [
"postman-echo",
"com"
],
"path": [
"headers"
],
"headers": {
"my-sample-header": "Lorem ipsum dolor sit amet",
"Cache-Control": "no-cache",
"Postman-Token": "24261a58-6acd-407e-a660-bd86b93f0301"
}
};
var req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
setTimeout(() => {
req.abort();
}, 5000);
req.on("
finish", () => {
console.log("Request ended.");
});
👨C
👨C
K
AS
AS
AS
O
AA