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

Function responseURL

deps/undici/undici.js:5261–5265  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

5259 var { webidl } = require_webidl();
5260 var { isomorphicEncode, collectASequenceOfCodePoints, removeChars } = require_infra();
5261 function responseURL(response) {
5262 const urlList = response.urlList;
5263 const length = urlList.length;
5264 return length === 0 ? null : urlList[length - 1].toString();
5265 }
5266 __name(responseURL, "responseURL");
5267 function responseLocationURL(response, requestFragment) {
5268 if (!redirectStatusSet.has(response.status)) {

Callers 1

responseLocationURLFunction · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected