method ClientRequest.prototype.setTimeout
Jump to headingClientRequest.prototype.setTimeout(timeout: number,callback?: () => void,): thisOnce a socket is assigned to this request and is connected socket.setTimeout() will be called.
Parameters Jump to heading
Jump to headingtimeout: numberMilliseconds before a request times out.
optional
Jump to headingcallback: () => voidOptional function to be called when a timeout occurs. Same as binding to the 'timeout' event.
Return Type Jump to heading
this