MCPcopy Create free account
hub / github.com/ampproject/amphtml / getResponseHeader

Method getResponseHeader

src/polyfills/fetch.js:251–256  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

249 statusText: 'OK',
250 responseText: body ? String(body) : '',
251 getResponseHeader(name) {
252 const headerName = String(name).toLowerCase();
253 return hasOwn(lowercasedHeaders, headerName)
254 ? lowercasedHeaders[headerName]
255 : null;
256 },
257 ...init,
258 };
259

Callers 4

getMethod · 0.80
hasMethod · 0.80
getMethod · 0.80
hasMethod · 0.80

Calls 2

hasOwnFunction · 0.90
StringFunction · 0.50

Tested by

no test coverage detected