* Sets the value of an HTTP request header. * @param {string} header The name of the header. * @param {string} value The value of the header.
(header, value)
| 94 | * @param {string} value The value of the header. |
| 95 | */ |
| 96 | setRequestHeader(header, value) { |
| 97 | if (this.readyState !== 1) { |
| 98 | throw new Error('setRequestHeader can only be called when state is OPENED.'); |
| 99 | } |
| 100 | this._headers[header] = value; |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * This method is not effectively implemented because Fetch API relies on the |
no outgoing calls
no test coverage detected