method ClientRequest.prototype.setTimeoutClientRequest.prototype.setTimeout(timeout: number,callback?: () => void,): thisDeprecatedOnce a socket is assigned to this request and is connected socket.setTimeout() will be called. Parameterstimeout: numberMilliseconds before a request times out. optionalcallback: () => voidOptional function to be called when a timeout occurs. Same as binding to the 'timeout' event. Return Typethis