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

Method has

src/polyfills/fetch.js:234–236  ·  view source on GitHub ↗

* @param {string} name * @return {boolean}

(name)

Source from the content-addressed store, hash-verified

232 * @return {boolean}
233 */
234 has(name) {
235 return this.xhr_.getResponseHeader(name) != null;
236 }
237}
238
239export class Response extends FetchResponse {

Callers

nothing calls this directly

Calls 1

getResponseHeaderMethod · 0.80

Tested by

no test coverage detected