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

Method json

github-actions/browserstack/set-browserstack-env.js:12689–12701  ·  view source on GitHub ↗
(data, init = {})

Source from the content-addressed store, hash-verified

12687 throw webidl.errors.invalidArgument({
12688 prefix,
12689 value: name,
12690 type: "header name"
12691 });
12692 }
12693 return __privateGet(this, _headersList).contains(name, false);
12694 }
12695 // https://fetch.spec.whatwg.org/#dom-headers-set
12696 set(name, value) {
12697 webidl.brandCheck(this, _Headers);
12698 webidl.argumentLengthCheck(arguments, 2, "Headers.set");
12699 const prefix = "Headers.set";
12700 name = webidl.converters.ByteString(name, prefix, "name");
12701 value = webidl.converters.ByteString(value, prefix, "value");
12702 value = headerValueNormalize(value);
12703 if (!isValidHeaderName(name)) {
12704 throw webidl.errors.invalidArgument({

Callers

nothing calls this directly

Calls 5

extractBodyFunction · 0.70
fromInnerResponseFunction · 0.70
makeResponseFunction · 0.70
initializeResponseFunction · 0.70

Tested by

no test coverage detected