()
| 890 | } |
| 891 | |
| 892 | [kBeginSend]() { |
| 893 | const state = this[kState]; |
| 894 | const headers = this[kHeaders]; |
| 895 | headers[HTTP2_HEADER_STATUS] = state.statusCode; |
| 896 | const options = { |
| 897 | endStream: state.ending, |
| 898 | waitForTrailers: true, |
| 899 | sendDate: state.sendDate, |
| 900 | }; |
| 901 | this[kStream].respond(headers, options); |
| 902 | } |
| 903 | |
| 904 | writeInformation(statusCode, headers) { |
| 905 | if (typeof statusCode !== 'number' || |