MCPcopy Create free account
hub / github.com/angular/dev-infra / headerValueNormalize

Function headerValueNormalize

github-actions/saucelabs/set-saucelabs-env.js:12216–12224  ·  view source on GitHub ↗
(potentialValue)

Source from the content-addressed store, hash-verified

12214 const dualStack = (_a = interceptorOpts == null ? void 0 : interceptorOpts.dualStack) != null ? _a : true;
12215 let affinity;
12216 if (dualStack) {
12217 affinity = (_b = interceptorOpts == null ? void 0 : interceptorOpts.affinity) != null ? _b : null;
12218 } else {
12219 affinity = (_c = interceptorOpts == null ? void 0 : interceptorOpts.affinity) != null ? _c : 4;
12220 }
12221 const opts = {
12222 maxTTL: (_d = interceptorOpts == null ? void 0 : interceptorOpts.maxTTL) != null ? _d : 1e4,
12223 // Expressed in ms
12224 lookup: (_e = interceptorOpts == null ? void 0 : interceptorOpts.lookup) != null ? _e : null,
12225 pick: (_f = interceptorOpts == null ? void 0 : interceptorOpts.pick) != null ? _f : null,
12226 dualStack,
12227 affinity,

Callers 2

appendHeaderFunction · 0.70
setMethod · 0.70

Calls 1

isHTTPWhiteSpaceCharCodeFunction · 0.70

Tested by

no test coverage detected