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

Function serializePathWithQuery

deps/undici/undici.js:1648–1657  ·  view source on GitHub ↗
(url, queryParams)

Source from the content-addressed store, hash-verified

1646 }
1647 __name(pathHasQueryOrFragment, "pathHasQueryOrFragment");
1648 function serializePathWithQuery(url, queryParams) {
1649 if (pathHasQueryOrFragment(url)) {
1650 throw new Error('Query params cannot be passed when url already contains "?" or "#".');
1651 }
1652 const stringified = stringify(queryParams);
1653 if (stringified) {
1654 url += "?" + stringified;
1655 }
1656 return url;
1657 }
1658 __name(serializePathWithQuery, "serializePathWithQuery");
1659 function isValidPort(port) {
1660 const value = parseInt(port, 10);

Callers 1

constructorMethod · 0.70

Calls 2

pathHasQueryOrFragmentFunction · 0.70
stringifyFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…