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

Function normalizeBinaryStringToUtf8

deps/undici/undici.js:5295–5297  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

5293 }
5294 __name(isValidEncodedURL, "isValidEncodedURL");
5295 function normalizeBinaryStringToUtf8(value) {
5296 return Buffer.from(value, "binary").toString("utf8");
5297 }
5298 __name(normalizeBinaryStringToUtf8, "normalizeBinaryStringToUtf8");
5299 function requestCurrentURL(request) {
5300 return request.urlList[request.urlList.length - 1];

Callers 1

responseLocationURLFunction · 0.70

Calls 2

toStringMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected