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

Function throwIfProxyAuthIsSent

deps/undici/undici.js:11368–11374  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

11366 }
11367 __name(buildHeaders, "buildHeaders");
11368 function throwIfProxyAuthIsSent(headers) {
11369 for (const key in headers) {
11370 if (isProxyAuthorizationHeader(key)) {
11371 throwProxyAuthError();
11372 }
11373 }
11374 }
11375 __name(throwIfProxyAuthIsSent, "throwIfProxyAuthIsSent");
11376 function isProxyAuthorizationHeader(key) {
11377 return key.length === proxyAuthorization.length && key.toLowerCase() === proxyAuthorization;

Callers 1

dispatchMethod · 0.70

Calls 2

throwProxyAuthErrorFunction · 0.70

Tested by

no test coverage detected