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

Method url

deps/undici/undici.js:12086–12094  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12084 }
12085 // Returns response?s URL, if it has one; otherwise the empty string.
12086 get url() {
12087 webidl.brandCheck(this, _Response);
12088 const urlList = this.#state.urlList;
12089 const url = urlList[urlList.length - 1] ?? null;
12090 if (url === null) {
12091 return "";
12092 }
12093 return URLSerializer(url, true);
12094 }
12095 // Returns whether response was obtained through a redirect.
12096 get redirected() {
12097 webidl.brandCheck(this, _Response);

Callers

nothing calls this directly

Calls 2

brandCheckMethod · 0.80
URLSerializerFunction · 0.70

Tested by

no test coverage detected