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

Function appendHeader

github-actions/browserstack/set-browserstack-env.js:12250–12269  ·  view source on GitHub ↗
(headers, name, value)

Source from the content-addressed store, hash-verified

12248 ip = (_a = family.ips[position]) != null ? _a : null;
12249 if (ip == null) {
12250 return ip;
12251 }
12252 if (Date.now() - ip.timestamp > ip.ttl) {
12253 family.ips.splice(position, 1);
12254 return this.pick(origin, hostnameRecords, affinity);
12255 }
12256 return ip;
12257 };
12258 var _state, _opts, _dispatch, _handler, _origin;
12259 var DNSDispatchHandler = class extends DecoratorHandler {
12260 constructor(state, { origin, handler, dispatch }, opts) {
12261 super(handler);
12262 __privateAdd(this, _state, null);
12263 __privateAdd(this, _opts, null);
12264 __privateAdd(this, _dispatch, null);
12265 __privateAdd(this, _handler, null);
12266 __privateAdd(this, _origin, null);
12267 __privateSet(this, _origin, origin);
12268 __privateSet(this, _handler, handler);
12269 __privateSet(this, _opts, __spreadValues({}, opts));
12270 __privateSet(this, _state, state);
12271 __privateSet(this, _dispatch, dispatch);
12272 }

Callers 2

fillFunction · 0.70
appendMethod · 0.70

Calls 3

headerValueNormalizeFunction · 0.70
isValidHeaderValueFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected