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

Function isProxyAuthorizationHeader

deps/undici/undici.js:11376–11378  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

11374 }
11375 __name(throwIfProxyAuthIsSent, "throwIfProxyAuthIsSent");
11376 function isProxyAuthorizationHeader(key) {
11377 return key.length === proxyAuthorization.length && key.toLowerCase() === proxyAuthorization;
11378 }
11379 __name(isProxyAuthorizationHeader, "isProxyAuthorizationHeader");
11380 function throwProxyAuthError() {
11381 throw new InvalidArgumentError("Proxy-Authorization should be sent in ProxyAgent constructor");

Callers 2

buildHeadersFunction · 0.70
throwIfProxyAuthIsSentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected