NodehttpClientRequest.prototype.setTimeoutmethod ClientRequest.prototype.setTimeout#ClientRequest.prototype.setTimeout(timeout: number,callback?: () => void,): thisOnce a socket is assigned to this request and is connected socket.setTimeout() will be called. Parameters ##timeout: number Milliseconds before a request times out. #callback: () => void optionalOptional function to be called when a timeout occurs. Same as binding to the 'timeout' event. Return Type #this
method ClientRequest.prototype.setTimeout#ClientRequest.prototype.setTimeout(timeout: number,callback?: () => void,): thisOnce a socket is assigned to this request and is connected socket.setTimeout() will be called. Parameters ##timeout: number Milliseconds before a request times out. #callback: () => void optionalOptional function to be called when a timeout occurs. Same as binding to the 'timeout' event. Return Type #this