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

Function set

lib/_http_client.js:470–476  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

468 return this[kPath];
469 },
470 set(value) {
471 const path = String(value);
472 if (INVALID_PATH_REGEX.test(path)) {
473 throw new ERR_UNESCAPED_CHARACTERS('Request path');
474 }
475 this[kPath] = path;
476 },
477 configurable: true,
478 enumerable: true,
479});

Callers

nothing calls this directly

Calls 2

StringClass · 0.85
testMethod · 0.45

Tested by

no test coverage detected