MCPcopy Index your code
hub / github.com/nodejs/node / responseOnTimeout

Function responseOnTimeout

lib/_http_client.js:892–898  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

890}
891
892function responseOnTimeout() {
893 const req = this._httpMessage;
894 if (!req) return;
895 const res = req.res;
896 if (!res) return;
897 res.emit('timeout');
898}
899
900// This function is necessary in the case where we receive the entire response
901// from the server before we finish sending out the request.

Callers

nothing calls this directly

Calls 1

emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…