| 7192 | result.push(Buffer.from(name), Buffer.from(subvalue)); |
| 7193 | } |
| 7194 | } else { |
| 7195 | result.push(Buffer.from(name), Buffer.from(value)); |
| 7196 | } |
| 7197 | } |
| 7198 | return result; |
| 7199 | } |
| 7200 | function parseH2ResponseHeaders(headers) { |
| 7201 | const _a = headers, { [HTTP2_HEADER_STATUS]: _statusCode } = _a, realHeaders = __objRest(_a, [__restKey(HTTP2_HEADER_STATUS)]); |
| 7202 | return parseH2Headers(realHeaders); |
| 7203 | } |
| 7204 | function connectH2(client, socket) { |
| 7205 | return __async(this, null, function* () { |
| 7206 | client[kSocket] = socket; |
| 7207 | if (!h2ExperimentalWarned) { |
| 7208 | h2ExperimentalWarned = true; |