Keep-Alive Agent
NodeJS
Easy
5 views
Problem Description
Create an http.Agent with keepAlive and print keepAlive status.
Output Format
Print true/false.
Constraints
Use http.Agent.
Official Solution
const http = require('http');
const agent = new http.Agent({ keepAlive: true });
console.log(!!agent.keepAlive);
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!