MCPcopy
hub / github.com/yujiosaka/headless-chrome-crawler / _handleError

Method _handleError

test/server/index.js:125–133  ·  view source on GitHub ↗

* @param {!IncomingMessage} request * @param {!ServerResponse} response * @private

(request, response)

Source from the content-addressed store, hash-verified

123 * @private
124 */
125 _handleError(request, response) {
126 request.on('error', error => {
127 if (error.code === 'ECONNRESET') {
128 response.end();
129 return;
130 }
131 throw error;
132 });
133 }
134
135 /**
136 * @param {!{username:string, password:string}} auth

Callers 1

_onRequestMethod · 0.95

Calls 1

endMethod · 0.45

Tested by

no test coverage detected