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

Function includesCredentials

deps/undici/src/lib/web/fetch/util.js:1440–1443  ·  view source on GitHub ↗

* @see https://url.spec.whatwg.org/#include-credentials * @param {URL} url

(url)

Source from the content-addressed store, hash-verified

1438 * @param {URL} url
1439 */
1440function includesCredentials (url) {
1441 // A URL includes credentials if its username or password is not the empty string.
1442 return !!(url.username || url.password)
1443}
1444
1445/**
1446 * @see https://html.spec.whatwg.org/multipage/document-sequences.html#traversable-navigable

Callers 1

httpNetworkOrCacheFetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected