MCPcopy Create free account
hub / github.com/nodejs/node / getGlobalOrigin

Function getGlobalOrigin

deps/undici/src/lib/web/fetch/global.js:7–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5const globalOrigin = Symbol.for('undici.globalOrigin.1')
6
7function getGlobalOrigin () {
8 return globalThis[globalOrigin]
9}
10
11function setGlobalOrigin (newOrigin) {
12 if (newOrigin === undefined) {

Callers 2

baseUrlMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected