* @param {number} status The response code. * @param {!Object } headers The response headers. All header names * will be converted to lowercase strings for consistent lookups. * @param {string} body The response body.
(status, headers, body)
| 120 | * @param {string} body The response body. |
| 121 | */ |
| 122 | constructor(status, headers, body) { |
| 123 | this.status = /** number */ status |
| 124 | this.body = /** string */ body |
| 125 | this.headers = /** !Map<string, string>*/ new Map() |
| 126 | for (let header in headers) { |
| 127 | this.headers.set(header.toLowerCase(), headers[header]) |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | /** @override */ |
| 132 | toString() { |