MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getResponseHeader

Method getResponseHeader

packages/core/xhr/index.ts:291–302  ·  view source on GitHub ↗
(header: string)

Source from the content-addressed store, hash-verified

289 }
290
291 public getResponseHeader(header: string): string {
292 if (isString(header) && this._readyState > 1 && this._headers && !this._errorFlag) {
293 header = header.toLowerCase();
294 for (const i in this._headers) {
295 if (i.toLowerCase() === header) {
296 return this._headers[i];
297 }
298 }
299 }
300
301 return null;
302 }
303
304 public overrideMimeType(mime: string) {
305 if (this._readyState === this.LOADING || this._readyState === this.DONE) {

Calls 1

isStringFunction · 0.90

Tested by

no test coverage detected