MCPcopy
hub / github.com/axios/axios / has

Method has

lib/core/AxiosHeaders.js:171–185  ·  lib/core/AxiosHeaders.js::AxiosHeaders.has
(header, matcher)

Source from the content-addressed store, hash-verified

169 }
170
171 has(header, matcher) {
172 header = normalizeHeader(header);
173
174 if (header) {
175 const key = utils.findKey(this, header);
176
177 return !!(
178 key &&
179 this[key] !== undefined &&
180 (!matcher || matchHeaderValue(this, this[key], key, matcher))
181 );
182 }
183
184 return false;
185 }
186
187 delete(header, matcher) {
188 const self = this;

Callers 8

visitFunction · 0.80
visitFunction · 0.80
isLoopbackFunction · 0.80
factoryFunction · 0.80
stripMatchingHeadersFunction · 0.80
esm-index.tsFile · 0.80
cjs-typing.tsFile · 0.80

Calls 2

normalizeHeaderFunction · 0.85
matchHeaderValueFunction · 0.85

Tested by

no test coverage detected