(header: string)
| 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) { |
no test coverage detected